- Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.17, 5.5.0 - 5.5.1
- Parse error: syntax error, unexpected ')' in /in/AilpR on line 12
Process exited with code 255.
<?php
class Foo
{
public function __invoke()
{
var_dump(func_get_args());
}
}
var_dump(is_callable(new Foo));
call_user_func(new Foo, 'foo'));