3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $words = array('systematic', 'سلام','gear','synthesis','mysterious'); $letters=array('s','m', 'e'); foreach ($words as $w) { //print "lets check word $w<br>"; $n=0; foreach ($letters as $l) { if (strpos($w, $l)!==false) $n++; } if ($n>=3) print "$w<br>"; }
Output for 4.3.0 - 7.1.0
systematic<br>mysterious<br>