3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Foo { public function __invoke() { var_dump(func_get_args()); } } var_dump(is_callable(new Foo)); call_user_func(new Foo, 'foo'));
Output for 5.3.0 - 5.5.1
Parse error: syntax error, unexpected ')' in /in/AilpR on line 12
Process exited with code 255.