I\'m looking for something like http://phpfiddle.org/, but completely local. I don\'t want to commit to installing something as complex as Apache, then PHP on top of that, j
For Windows Users:
Check out the ezPHP GitHub project. Per the project description...
EzPHP is an alternative to Xamp/Wamp. EzPHP is the easiest way to setup a PHP development environment for learning PHP programming on Windows.
The scope of this project is to provide a single .exe file that will get you a PHP developing server.
Link - https://github.com/marcomilon/ezphp
Setting it up was simple. Download the exphp.exe file and drop it in a folder. When you run the exe, it will launch the server and generate a public_html folder and index.php file. Follow the instructions in the command window and navigate to http://localhost:8080. Now you can start developing in the public_html folder and refresh your browser to see your changes.
You can install either XAMPP or WAMP server locally if you find it complicated to configure PHP for Apache.
As a minimalistic solution, on the command line you can also start php in interactive shell with php -a
that will execute the commands you enter line by line. I often use it for testing small snippets of code.