3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = array(1,2,3,4); list($a, $b, $c, $d, $e, $f, $g) = $arr; echo $g;
Output for 7.0.0 - 7.2.0
Notice: Undefined offset: 4 in /in/jSG5B on line 3 Notice: Undefined offset: 5 in /in/jSG5B on line 3 Notice: Undefined offset: 6 in /in/jSG5B on line 3
Output for 5.3.18 - 5.6.28
Notice: Undefined offset: 6 in /in/jSG5B on line 3 Notice: Undefined offset: 5 in /in/jSG5B on line 3 Notice: Undefined offset: 4 in /in/jSG5B on line 3