3v4l.org

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