PHP Runtime¶
The PHP runtime is the engine that executes PHP code. It includes the PHP core extensions, the custom ones.
There is an official PHP runtime, provided by the PHP official website. It is maintained by the PHP fundation. It is mostly written in C.
There are also custom runtimes, which takes the PHP code as input, and execute it. They are build with other languages, and thrive to execute as much as possible of PHP’s features, though they have to make trade off for fit with specific features: for example, extensions libraries are not always available.
PHP on Rust
PHP on Zig
PHP on Java, via Quercus
PHP on Wasm
These projects are complete rewrite of PHP with another technology. This is distinct from embedding PHP, where an original PHP engine is incorporated in another language.
See also PHP on Rust, PHP on Zig, PHP on Java and PHP on wasm.