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<br />';

preferences:
38.23 ms | 402 KiB | 5 Q