3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a1=array("a"=>"red","b"=>"green","c"=>"blue","d"=>"yellow"); $a2=array("a"=>"purple","b"=>"orange"); print_r(array_splice($a1,1); ?>
Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.24
Parse error: syntax error, unexpected ';' in /in/boYMF on line 4
Process exited with code 255.

preferences:
178.03 ms | 1395 KiB | 61 Q