3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $tmp = array(10=>1, "ten"=>2); list($x,$y) = $tmp; var_dump($x, $y);
Output for 7.0.0 - 7.1.0
Notice: Undefined offset: 0 in /in/AC0rU on line 4 Notice: Undefined offset: 1 in /in/AC0rU on line 4 NULL NULL
Output for 5.3.0 - 5.6.28
Notice: Undefined offset: 1 in /in/AC0rU on line 4 Notice: Undefined offset: 0 in /in/AC0rU on line 4 NULL NULL
Output for 4.3.0 - 5.2.17
Notice: Undefined offset: 1 in /in/AC0rU on line 4 Notice: Undefined offset: 0 in /in/AC0rU on line 4 NULL NULL