3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $words = "systematic,gear,synthesis,mysterious"; $words=explode(",",$words); $your_array = preg_grep('~(?=[^s]*s)(?=[^m]*m)(?=[^e]*e)~', $words);; foreach ($w = $words) { if (strpos($words, array('s', 'e', 'm')) == 0) { echo $w; } } print_r($your_array);
Output for 5.3.0 - 5.4.23
Parse error: syntax error, unexpected ')' in /in/1nnaE on line 8
Process exited with code 255.