- Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.6
- Parse error: syntax error, unexpected '->' (T_OBJECT_OPERATOR) in /in/ZYEJu on line 10
Process exited with code 255.
<?php
class A {
function f() {
$x = static function($x) { var_dump($x); };
$x(1);
}
}
new A()->f()