Quite often I have a snippet of PHP code that I’ve quickly typed out, maybe a string builder or something like that, and I need to test it, but I want to test it on its own, without the rest of the script being executed alongside it.
Enter the wonderful world of online PHP interpreters then. Basically these guys allow you to enter some PHP code into a box on a webpage, which then gets evaluated (i.e. executed), and the console result of which is returned to you. Simple.
My most often used of these services is the simple but extremely useful PHP CodePad, written by Ajay Kwatra.
Well worth checking out if you ever need to check that the result of say “date(‘d/m/Y’,strtotime(‘-2 days’))” is exactly what you were hoping for! :)
Related Link: http://phpcodepad.com/