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')));
Output for 5.3.0 - 7.2.0
bool(true) bool(true) bool(true) bool(true)