3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = array(2=>3,0=>10,1=>100,1=>200); var_dump($arr); list($a,$a) = $arr; var_dump($a);
based on nn9bp
Output for 7.0.0 - 7.2.0
array(3) { [2]=> int(3) [0]=> int(10) [1]=> int(200) } int(200)
Output for 5.3.19 - 5.6.28
array(3) { [2]=> int(3) [0]=> int(10) [1]=> int(200) } int(10)