3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = array(array("Tom","Jones"), array("Mary","Perkins")); //old foreach ($array as $arr){ list($fname,$lname) = $arr; echo $fname,' ',$lname,'<BR>',"\n"; } //new /*foreach($array as list($fname,$lname)){ echo $fname,' ',$lname,'<BR>',"\n"; }*/
Output for 4.3.0 - 7.2.0
Tom Jones<BR> Mary Perkins<BR>