run php code code example
Example 1: run php server
cd path/to/your/app
php -S localhost:8000
Example 2: write php online
Try this sites to write php code online:
http://www.writephponline.com/
http://sandbox.onlinephpfunctions.com/
https://paiza.io/en/projects/new
http://phptester.net/
https://www.tutorialspoint.com/execute_php_online.php
https://rextester.com/l/php_online_compiler
http://phpfiddle.org/
https://repl.it/languages/php_cli
https://www.jdoodle.com/php-online-editor/
Example 3: run a php site
php -S 127.0.0.1:8000