Someone Built Laravel for COBOL, and Its 188-Line Endpoints Beat PHP on Tail Latency
GitHub user pihedy wrapped GnuCOBOL, lighttpd, and CGI into a satirical web framework that spawns a fresh process per request and enforces 72-column punch-card line limits.

Most parody GitHub repos stop at a funny README and an empty src folder. Developer pihedy went the opposite direction and wired up a real Docker stack running GnuCOBOL 3.1 behind lighttpd, where every single HTTP hit invokes public/index.cgi and boots a fresh COBOL front controller from public/INDEX.cbl.
The repo describes the architecture with deadpan accuracy: “One request is one process: a batch job with better marketing.” Every controller and helper compiles into its own module under build/ and loads on demand via a dynamic CALL, which means your web app is essentially cosplaying as an IBM mainframe on a five-dollar Linux box.
To keep the Laravel illusion intact, routes live in routes/WEB.cbl and routes/API.cbl inside the PROCEDURE DIVISION, firing CALL 'ROUTE-GET' and CALL 'ROUTE-POST'. Instead of PHP method dispatch, controllers branch through an EVALUATE statement. A full user controller that takes about fifteen lines in PHP stretches to 188 lines here—a ratio the project frames as a selling point, arguing that generating thousands of lines gives AI coding agents “abundant” context (more tokens, fewer questions).
Data persistence skips MySQL for GnuCOBOL VSAM-style indexed files, where a .cpy copybook defines the schema and raw file status codes stand in for exceptions: '00' means everything worked, '23' stands in for ModelNotFoundException, and '35' informs you that you forgot to run migrations. Middleware wraps each request twice using PERFORM VARYING, shipping built-in CSRF checks, an X-Powered-By: COBOL-85 header, and a loose AUTH check looking for X-RACF-User: IBMUSER. Even errors commit to the bit: abort() becomes ABEND with a storage dump, so hitting GET /users/abc throws ABEND S0C7 Data exception and a missing controller returns ABEND S806 Module not found.
You drive the whole thing through cobtisan, a CLI wrapper that handles Docker startup, test runs, controller scaffolding (./cobtisan make:controller POST spits out 58 lines), and a linter that fails any code wandering past column 72. Request logs pile up in storage/logs/SYSOUT.log, one IEF403I line at a time. Call it a true division of labor.
The punchline gets better once you run ./cobtisan benchmark. On the same $5 VPS spec (1 vCPU, 1 GB RAM in Docker) against stock Laravel PHP with opcache enabled and caches warm, PHP wins average throughput at 137 requests per second on GET /users/1 and 158 on GET /api/users/1, compared to COBOL’s 80 and 137. Look at tail latency, though, and the 67-year-old language flips the script: COBOL holds p99 latency to ~195–300 ms while PHP spikes to ~570–790 ms, even though COBOL forks a brand-new OS process on every request. As the benchmark notes put it, “Sixty years of batch processing teach you consistency.” (For IBM z16 numbers, the pricing table helpfully says “Please call sales”—which is mainframe for bring a second mortgage.)
Nobody is ripping out their production PHP fleet to deploy 188-line uppercase controllers on Dockerized CGI, and pihedy is explicit that this is an unofficial parody sitting alongside Rust, Go, BASIC, and emoji ports of Laravel. Still, watching a joke repo ship working Blade templates, CSRF tokens, and tighter p99 latency than a warmed-up PHP stack is a humbling reminder for anyone blaming their hardware budget for sluggish endpoints. If AI agents really do end up writing most enterprise glue code, we might as well make them stay inside column 72.
Ship confidently. Understand optionally.