3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static function fooBar() { return 'Hello World'; } } $callable = 'Foo::fooBar'; var_dump(is_callable($callable)); var_dump(call_user_func($callable));

preferences:
37.67 ms | 402 KiB | 5 Q