3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php /* class Foo { public static function barStatic() { } public function bar() { } } $foo = new Foo(); var_dump(is_callable(array($foo, 'bar'))); var_dump(is_callable(array($foo, 'barStatic'))); var_dump(is_callable(array('Foo', 'bar'))); var_dump(is_callable(array('Foo', 'barStatic'))); var_dump(is_callable('Foo::bar')); var_dump(is_callable('Foo::barStatic')); */ // var_dump(is_callable('ReflectionMethod::setAccessible'));
Output for 4.3.0 - 7.2.0
bool(false)