3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $friend = array("Aime"=>"19","Kwan"=>"19","Pui"=>"20","Dear"=>"19","Parn"=>"19"); foreach($friend as $key=>$val) { print"Name: ".$key.", Age: ".$val. "\n"; } ?>
based on RNWTr
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
Name: Aime, Age: 19 Name: Kwan, Age: 19 Name: Pui, Age: 20 Name: Dear, Age: 19 Name: Parn, Age: 19