3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a1=array("a"=>"red","b"=>"green","c"=>"blue","d"=>"yellow"); $a2=array("a"=>"purple","b"=>"orange"); print_r(array_splice($a1[0]); print_r $a1; ?>
Output for 5.3.0 - 5.4.24
Parse error: syntax error, unexpected ';' in /in/2kBT1 on line 4
Process exited with code 255.