3v4l.org

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