3v4l.org

run code in 300+ PHP versions simultaneously
<?php $getFunc = function() { return function ($name) { echo "Hello $name"; }; } $getFunc()('Tim');
Output for 5.4.2 - 5.4.45, 5.5.24 - 5.5.29, 5.6.7 - 5.6.13
Parse error: syntax error, unexpected '$getFunc' (T_VARIABLE) in /in/ehhZm on line 9
Process exited with code 255.

preferences:
203.36 ms | 1399 KiB | 63 Q