3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $data = range('a', 'f'); print_r($data); $result = array_shift($data); var_dump($result); print_r($data);
based on 05eQ8
Output for 5.6.38, hhvm-3.18.5 - 3.22.0, 7.1.0 - 7.2.10
Array ( [0] => a [1] => b [2] => c [3] => d [4] => e [5] => f ) string(1) "a" Array ( [0] => b [1] => c [2] => d [3] => e [4] => f )