3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $test = array("0" => "test", "1"=>"test1"); $test1 = array_shift($test); echo $test1; print_r($test);
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
testArray ( [0] => test1 )
Output for hhvm-3.10.0

Process exited with code 153.