3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class a { static public function a() { return true;} } $cls = [ a::a(), 'a::a','strpos::test' , 'strlen', function(){}, null]; foreach($cls as $cl) { var_dump(is_callable($cl)); var_dump(is_callable($cl,true)); var_dump($cl instanceof Closure); }
Output for 5.3.0 - 5.4.30
Fatal error: Constructor a::a() cannot be static in /in/N0D42 on line 7
Process exited with code 255.