3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $c = [1, 2, 3, 4, 5]; $a = array_shift($c); $b = array_shift($c); var_dump($a, $b, $c);
based on psT52
Output for 5.5.0 - 7.2.6
int(1) int(2) array(3) { [0]=> int(3) [1]=> int(4) [2]=> int(5) }