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 Friends"; }} $names = array ('Nina','Tal','Alexandra'); hello($names); ?>
based on YnFCO
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>