3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $func = function (callback $a) { $a(); }; $a = function () { echo 'Hello World'; } $func($a);
Output for 5.4.0 - 5.4.30
Parse error: syntax error, unexpected '$func' (T_VARIABLE) in /in/qHOQQ on line 10
Process exited with code 255.
Output for 5.3.7 - 5.3.28
Parse error: syntax error, unexpected T_VARIABLE in /in/qHOQQ on line 10
Process exited with code 255.