3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array('10'=>5,'11'=>6,'12'=>7); list($b,$b,$c) = $a; var_dump($b,$c);
Output for 7.0.0 - 7.2.0
Notice: Undefined offset: 0 in /in/oo2tK on line 4 Notice: Undefined offset: 1 in /in/oo2tK on line 4 Notice: Undefined offset: 2 in /in/oo2tK on line 4 NULL NULL
Output for 5.3.0 - 5.6.28
Notice: Undefined offset: 2 in /in/oo2tK on line 4 Notice: Undefined offset: 1 in /in/oo2tK on line 4 Notice: Undefined offset: 0 in /in/oo2tK on line 4 NULL NULL
Output for 4.3.0 - 5.2.17
Notice: Undefined offset: 2 in /in/oo2tK on line 4 Notice: Undefined offset: 1 in /in/oo2tK on line 4 Notice: Undefined offset: 0 in /in/oo2tK on line 4 NULL NULL