3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $queue = array("pencil","pen"); array_unshift($queue,"eraser","ruler"); print_r($queue); ?>
Output for 4.3.0 - 7.1.0
Array ( [0] => eraser [1] => ruler [2] => pencil [3] => pen )