3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array (1, 2, 3); $b = array (4, 5, 6, 7, 8 "a" => 1); var_dump ($a + $b);
Output for 5.4.0 - 5.4.25
Parse error: syntax error, unexpected '"a"' (T_CONSTANT_ENCAPSED_STRING), expecting ')' in /in/nKAop on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /in/nKAop on line 4
Process exited with code 255.