3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // Everything you enter here will be executed by our servers. Try it! error_reporting(-1); $a = array('str' => array(1, 2, 3)); @array_shift($a['str']); var_dump($a);
Output for 4.3.0 - 7.1.0
array(1) { ["str"]=> array(2) { [0]=> int(2) [1]=> int(3) } }