3v4l.org

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