3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $getFunc = function () { return function ($name) { echo "Hello $name"; }; }; $getFunc()('Tim');
based on K47v2
Output for 7.0.0 - 7.2.0
Hello Tim
Output for 5.3.18 - 5.6.21
Parse error: syntax error, unexpected '(' in /in/4Mc4I on line 9
Process exited with code 255.