← Preprints

A Star is Reborn: The PHP Interpreter Rewritten in Safe Rust

Preprint · First posted 24 November 2026

Abstract

We reimplement the PHP 5.0.0 engine in safe Rust. For a core fragment, we prove that the implementation refines an abstract PHP machine and thereby restricts accesses to the logical memory each operation is permitted to use. We evaluate compatibility and runtime cost against the C engine.