3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // https://bugs.php.net/bug.php?id=12257 $array = array_values(array("name"=>"Sheldon","age"=>"42")); var_dump($array); list($a,$a) = $array; var_dump($a);
Output for 7.0.0 - 7.1.0
array(2) { [0]=> string(7) "Sheldon" [1]=> string(2) "42" } string(2) "42"
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0
array(2) { [0]=> string(7) "Sheldon" [1]=> string(2) "42" } string(7) "Sheldon"