Help
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
Keyboard Shortcuts & Accessibility
- Tab / Shift+Tab: Move focus between all interactive controls and panels
- Enter / Space: Activate focused button, toggle, or dropdown
- Ctrl + +: Increase editor font size
- Ctrl + -: Decrease editor font size
- Ctrl + S: Save editor content as a PHP file
- Ctrl + C: Copy editor content to clipboard
- Skip Links: Use Tab at the top of the page to jump directly to Editor or Output
- Screen Reader Support: Output and error panels announce updates automatically; all icons and controls have accessible labels
- All features are fully usable with keyboard and screen reader
Code Editor
PHP Function Reference
Output
Ready!
Errors
No Errors!