3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array("name"=>"Sheldon","age"=>"42"); var_dump($array); list($a,$a) = $array;
Output for 7.0.0 - 7.1.0
array(2) { ["name"]=> string(7) "Sheldon" ["age"]=> string(2) "42" } Notice: Undefined offset: 0 in /in/hBmqN on line 4 Notice: Undefined offset: 1 in /in/hBmqN on line 4
Output for 5.3.0 - 5.6.28
array(2) { ["name"]=> string(7) "Sheldon" ["age"]=> string(2) "42" } Notice: Undefined offset: 1 in /in/hBmqN on line 4 Notice: Undefined offset: 0 in /in/hBmqN on line 4
Output for 4.3.0 - 5.2.17
array(2) { ["name"]=> string(7) "Sheldon" ["age"]=> string(2) "42" } Notice: Undefined offset: 1 in /in/hBmqN on line 4 Notice: Undefined offset: 0 in /in/hBmqN on line 4