3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function bar() { } } function gimme_a_callable(callable $callable) { } error_reporting(-1); var_dump(is_callable([Foo::class, 'bar'])); gimme_a_callable([Foo::class, 'bar']);

preferences:
64.34 ms | 406 KiB | 5 Q