3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { abstract function fooBar(); } $callable = 'Foo:fooBar'; var_dump(is_callable($callable)); //var_dump(call_user_func($callable));
Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.27
Fatal error: Class Foo contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Foo::fooBar) in /in/Kefdj on line 5
Process exited with code 255.

preferences:
202.6 ms | 1395 KiB | 64 Q