3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mystring = 'This Question is about php strings'; $wordsToFind = array('php','string','Question'); foreach ($wordsToFind as $word) if (strpos($mystring, $word)) echo $word.' has been found';

preferences:
31.88 ms | 402 KiB | 5 Q