3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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.