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></br>"; } } else { echo "Hello Friends"; }} $names = array ('Nina','Tal','Alexandra'); hello($names); ?>
based on Ts2QZ
Output for 4.3.0 - 7.2.0
Hello, Nina how its going <br></br>Hello, Tal how its going <br></br>Hello, Alexandra how its going <br></br>