TypePHP
Ahead-of-time compiler that turns typed PHP into native binaries
Featured by Willet
What it is
TypePHP translates PHP source into C++17 and then into machine code, producing standalone executables, loadable PHP extensions, or shared libraries. It adds compile-time types, typed containers, high-precision numeric types, and C++ interop while keeping PHP syntax, and targets Linux, macOS, Windows, mobile, and WASI. PHP developers reach for it when they need faster numeric hot paths, native deployment without a PHP CLI, or compiled artifacts instead of readable source. It supports a defined subset of PHP rather than every dynamic feature.
