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. "<br>"; } ?>
based on JCk0c
Output for 4.3.0 - 7.1.0
Name: Aime, Age: 19<br>Name: Kwan, Age: 19<br>Name: Pui, Age: 20<br>Name: Dear, Age: 19<br>Name: Parn, Age: 19<br>