3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php //$arr = [1,2,3]; //$arr = array(1,2,3); define("ARR",[a,b,c); const BLA = [1,2,3]; //var_dump(ARR,BLA); var_dump(ARR,BLA);
based on WqmXZ
Output for 5.4.0 - 5.4.32
Parse error: syntax error, unexpected ')', expecting ']' in /in/kaObu on line 4
Process exited with code 255.
Output for 5.3.9 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/kaObu on line 4
Process exited with code 255.