3v4l.org

run code in 150+ 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 - 5.6.22, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Tom Jones<BR> Mary Perkins<BR>