PHP in WebAssembly
PHP is a popular web scripting language. So it is unsurprising that one PHP project attempts to make it possible to run PHP inside of the web browser.
There have been a few iterations of PHP-in-Browser (PIB), but Sean Morris’ PHP-Wasm looks to be the most active.
Right now, this is specific to the browser environment. The implementation is impressive, as it contains a lot of PHP features such as access to a database (SQLite) and file system access.
- The original version of PHP-In-Browser (PIB) was Oraoto’s version
- Another version of PIB is Soyuka’s fork
wasm32-wasiPHP releases provided by the Wasm Labs team at VMware
Here are some great resources:
- Try it out in-browser
- The examples even include running Drupal 7!
- If you are looking for a way to run Wasm inside of PHP, Wasmer has bindings