3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php //$foo()() //class foo { static function bar(){ return 'bar'; }} function bar() { echo 'bazz'; } $foo = 'foo'; echo (function() { return 'bar';})(); //echo $foo()[0];
based on 02Er6
Output for 7.0.0 - 7.2.0
bar
Output for 5.4.0 - 5.6.28
Parse error: syntax error, unexpected '(', expecting ',' or ';' in /in/DetbU on line 6
Process exited with code 255.