3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php abstract class Foo { abstract function fooBar(); } $callable = 'Foo::fooBar'; var_dump(is_callable($callable)); //var_dump(call_user_func($callable));
Output for 5.0.0 - 5.0.5, 5.1.1 - 5.2.17, 5.3.18 - 5.3.29, 5.4.8 - 7.1.0
bool(false)
Output for 5.3.0 - 5.3.17, 5.4.0 - 5.4.7
bool(true)
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/U4uJG on line 10
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_CLASS in /in/U4uJG on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected T_CLASS in /in/U4uJG on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/U4uJG on line 3
Process exited with code 255.