3v4l.org

run code in 300+ PHP versions simultaneously
<?php function match_str($cellItemName,$dbItemArray) { $count = 0; $reult1 = stristr($cellItemName,$dbItemArray); //echo $reult1; if($reult1){ $count=1; break; } if($count==1) { return 1; } else { return 0; } } $result = match_str("2 php developer $150","PHP DEVELOPER"); if($result) echo "<a href='#' >anand</a>"; else echo "<a href='#' >kumar</a>"; ?>
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.28, 5.4.0 - 5.4.25, 5.5.0 - 5.5.9
Fatal error: Cannot break/continue 1 level in /in/f0D1j on line 10
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot break/continue 1 level in /in/f0D1j on line 10

preferences:
216.44 ms | 1395 KiB | 125 Q