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>= count($letters)) print "$w<br/>".count($leltters)."==="; }
Output for 5.0.4 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Notice: Undefined variable: leltters in /in/Qp2fp on line 10 systematic<br/>0=== Notice: Undefined variable: leltters in /in/Qp2fp on line 10 mysterious<br/>0===
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: leltters in /in/Qp2fp on line 10 systematic<br/>0=== Notice: Undefined variable: leltters in /in/Qp2fp on line 10 mysterious<br/>0===