3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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';
Output for 4.3.0 - 7.2.0
php has been foundstring has been foundQuestion has been found