3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $words = "a10,a09"; $words=explode(",",$words); $your_array = preg_grep('~(?=[^a]*s)(?=[^b]*m)(?=[^c]*e)~', $words);; print_r($your_array);
Output for 4.3.0 - 7.1.0
Array ( )