3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = ['test1' => '1', 'test2' => '2']; var_dump(array_shift($array));
based on 6grK6
Output for 5.6.0 - 5.6.38, hhvm-3.15.4, 7.0.0 - 7.3.0
string(1) "1"