3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $greet = function($name) { echo("Hello %s\r\n", $name); }; $greet('World'); $greet('PHP'); ?>
Output for 5.3.0 - 5.4.21
Parse error: syntax error, unexpected ',' in /in/i8g0t on line 4
Process exited with code 255.