Welcome to the PHP-WASM Playground!
The PHP-WASM Playground is a simple in-browser editor using the PHP-WASM module. It is not a fully featured IDE.
The PHP-WASM module is the PHP interpreter compiled to WebAssembly using Emscripten. It allows you to run PHP code directly in the browser.
Who is this for?
This app is for anyone that wants to run PHP snippets or inspect the inner workings of the PHP VM.
It has been designed with the idea of an in-browser testing ground for small snippets against multiple PHP versions in mind.
The inspiration is of course the well-known 3v4l.org playground project, where you can do the same but against hosted PHP versions.
Here everything runs in the browser, and once the web application is loaded, it will even work without internet connection.
Usage
Write your PHP code in the editor on the left and click the Run button to execute it. You will see the result in the output panel on the right.
Keep in mind to start with the usual PHP opening tag: <?php
For issues related to the PHP-WASM module or this playground, please visit: github.com/jakoch/php-wasm-devbox/issues
Interactions
Status Displays
Ready!
No Errors!