3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo($x) { var_dump($x, $x()); //return $x === $x(); } foo((static $f = function () { return function () use ($f) { return $f; }; })());
Output for 7.2.2
Parse error: syntax error, unexpected '$f' (T_VARIABLE), expecting :: (T_PAAMAYIM_NEKUDOTAYIM) in /in/8jaui on line 9
Process exited with code 255.

preferences:
153.79 ms | 1394 KiB | 8 Q