3v4l.org

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

preferences:
48.58 ms | 402 KiB | 5 Q