3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function match_str($cellItemName,$dbItemArray) { for($i=0;$i<2;$i++) { if(stristr($dbItemArray,$cellItemName)){ $count=1; break; } echo $count; } die; if($count==1) { return 1; } else { return 0; } } $result = match_str("2 php developer $150","php developer"); echo $result; ?>
Output for 5.0.4 - 7.1.0
Notice: Undefined variable: count in /in/8vQQI on line 11 Notice: Undefined variable: count in /in/8vQQI on line 11
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: count in /in/8vQQI on line 11 Notice: Undefined variable: count in /in/8vQQI on line 11