3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = array('first', 'foo' => 'second', 'third'); list($a, $b) = $arr; echo "$a $b\n"; foreach($arr as $val) {echo "$val";}
based on Sm5bt
Output for 4.3.0 - 7.2.0
first third firstsecondthird