3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array('a'=>5,'b'=>6,'c'=>7); var_dump($a); list($b,$b,$c) = $a;
Output for 7.0.0 - 7.1.0
array(3) { ["a"]=> int(5) ["b"]=> int(6) ["c"]=> int(7) } Notice: Undefined offset: 0 in /in/gdi5Q on line 5 Notice: Undefined offset: 1 in /in/gdi5Q on line 5 Notice: Undefined offset: 2 in /in/gdi5Q on line 5
Output for hhvm-3.10.0 - 3.12.0
array(3) { ["a"]=> int(5) ["b"]=> int(6) ["c"]=> int(7) } Notice: Undefined index: 2 in /in/gdi5Q on line 5 Notice: Undefined index: 1 in /in/gdi5Q on line 5 Notice: Undefined index: 0 in /in/gdi5Q on line 5
Output for 5.3.0 - 5.6.28
array(3) { ["a"]=> int(5) ["b"]=> int(6) ["c"]=> int(7) } Notice: Undefined offset: 2 in /in/gdi5Q on line 5 Notice: Undefined offset: 1 in /in/gdi5Q on line 5 Notice: Undefined offset: 0 in /in/gdi5Q on line 5
Output for 4.3.0 - 5.2.17
array(3) { ["a"]=> int(5) ["b"]=> int(6) ["c"]=> int(7) } Notice: Undefined offset: 2 in /in/gdi5Q on line 5 Notice: Undefined offset: 1 in /in/gdi5Q on line 5 Notice: Undefined offset: 0 in /in/gdi5Q on line 5