My AI-built PHP engine in Rust passes 17% of PHP-src tests, renders WordPress
A developer created a PHP interpreter called Phargo written in Rust using AI assistance, despite having no prior knowledge of the language or compiler design. The project uses the official PHP test suite as an objective benchmark to measure the AI-generated code's accuracy.
Why it matters
This experiment highlights the evolving role of AI in software engineering and the importance of rigorous, automated testing when using AI to build complex systems.
A few nights ago I watched my terminal print out a 26 KB WordPress front page — <title>Phargo Test Site</title> , the block-library CSS, "Hello world!" pulled from a SQLite database, and a clean </html> at the bottom. Completely unremarkable output, except for one detail: the PHP engine that served it contains zero lines of PHP's actual source code . It's a from-scratch interpreter written in Rust.
The article is a personal technical account of a software project and does not take a political or social stance.
Get smarter about the news
Sign up free for a feed built around what you actually care about, Dive Deeper research on any story, and the full text of every article.
Create free accountAlready have an account? Sign in