3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class a { static public function o() { return true;} } $cls = [ '' ]; foreach($cls as $cl) { echo var_export($cl, true); echo "\t"; echo "is_callable\n"; var_dump(is_callable($cl)); echo "is_callable by syntax\n"; var_dump(is_callable($cl,true)); echo "instance of closure\n"; var_dump($cl instanceof Closure); }