- 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.
<?php
function foo($x)
{
var_dump($x, $x());
//return $x === $x();
}
foo((static $f = function () {
return function () use ($f) {
return $f;
};
})());