3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "shot this dude for being a mother"; $bads = array('truck', 'shot'); foreach($bads as $bad) { $place = strpos($string, $bad); if (!empty($place)) { echo 'Bad word'; exit; } else { echo "Good"; } }

preferences:
35.48 ms | 404 KiB | 5 Q