3v4l.org is a very useful site for testing PHP code snippets. It will run code against PHP versions from 4.3.0 to 5.6.6, php7 builds, and HHVM.
You’ll get the output of the script, performance comparisons, and VLD opcodes. Definitely worth bookmarking.