3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = array('first', 2 => 'second', 1 => 'third'); list($a, $b) = $arr; echo "$a $b\n"; foreach($arr as $val) {echo "$val\n";}
based on 23UV7
Output for 4.3.0 - 7.1.0
first third first second third