3v4l.org

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