3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function hello($arr){ if (is_Array($arr)){ foreach($arr as $name){ echo "Hello, $name how its going </br>"; } } else { echo "Hello My Friends"; } } $names = array('Nina','Tal','Alexandra','Sofia'); hello($names); ?>
based on EOEp7
Output for 4.3.0 - 7.2.0
Hello, Nina how its going </br>Hello, Tal how its going </br>Hello, Alexandra how its going </br>Hello, Sofia how its going </br>