3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 'foo'; $f = function($x) use(*) { return function($y) use (*) { return $x . $y . $a; } };
Output for 5.4.2 - 5.4.45, 5.5.24 - 5.5.30, 5.6.7 - 5.6.14
Parse error: syntax error, unexpected '*', expecting '&' or variable (T_VARIABLE) in /in/nVK6F on line 4
Process exited with code 255.

preferences:
187.11 ms | 943 KiB | 66 Q