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 7.0.0 - 7.1.0
Notice: Only variables should be passed by reference in /in/BlJqW on line 8 array(1) { ["str"]=> array(3) { [0]=> int(1) [1]=> int(2) [2]=> int(3) } }
Output for 5.1.2 - 5.6.28
Strict Standards: Only variables should be passed by reference in /in/BlJqW on line 8 array(1) { ["str"]=> array(3) { [0]=> int(1) [1]=> int(2) [2]=> int(3) } }
Output for 4.3.0 - 5.1.1
array(1) { ["str"]=> array(2) { [0]=> int(2) [1]=> int(3) } }