3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = ['a'=>1, 'b'=>2]; $z = ['c'=>1, 'a'=>2]; var_dump(array_merge($x,$z);
Output for 5.4.0 - 5.4.27
Parse error: syntax error, unexpected ';' in /in/te2VU on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected '[' in /in/te2VU on line 2
Process exited with code 255.

preferences:
176.13 ms | 1399 KiB | 64 Q