3v4l.org

run code in 200+ 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 - 7.2.0
testArray ( [0] => test1 )