3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(1, 2); $b = array(3,4,5); print_r($a + $b); print_r(array_merge($a, $b))
Output for 5.4.0 - 5.4.32, 5.5.0 - 5.5.16, 5.6.0 - 5.6.1
Parse error: syntax error, unexpected end of file in /in/FhVeu on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Parse error: syntax error, unexpected $end in /in/FhVeu on line 5
Process exited with code 255.

preferences:
202.23 ms | 1395 KiB | 89 Q