3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Foo { abstract public function fooFunc(); } class Bar extends Foo { public function fooFunc() { return 'hello'; } } $callable = array(new Foo, 'fooFunc'); var_dump(is_callable($callable)); var_dump(call_user_func($callable));
Output for 5.3.0 - 5.4.27
Fatal error: Class Foo contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Foo::fooFunc) in /in/V6o8T on line 5
Process exited with code 255.