3v4l.org

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