3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = ['monday', 'tuesday']; $end = ['monday', 'sunday']; print_r $start + $end;
Output for 5.4.0 - 5.4.15
Parse error: syntax error, unexpected '$start' (T_VARIABLE) in uRuoU on line 5
Process exited with code 255.
Output for 5.3.25
Parse error: syntax error, unexpected '[' in /in/JeHJc on line 2
Process exited with code 255.
Output for 5.3.0 - 5.3.24
Parse error: syntax error, unexpected '[' in uRuoU on line 2
Process exited with code 255.

preferences:
164.42 ms | 1399 KiB | 49 Q