Open PHP Playground and run the sample code from php.net.
Install from Chrome Web Store
https://chromewebstore.google.com/detail/ddhmobhdfmhfckpkedkompdjdmpapeng
- Open https://www.php.net/*
- Click "Run on PHP Playground" button
- The code will be executed on PHP Playground
The Playground let you to execute basic PHP code in real time using WebAssembly technology.
PHP code is very secure because it is executed only within the browser using WebAssembly technology. In addition, the results of the execution are output to an iframe using an empty sandbox attribute, so no JavaScript or other code will run.
If you have any requests or find any bugs, please create an issue on GitHub.