3v4l.org

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