3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function doescontain($tocheck, $inlong){ preg_match("/$tocheck/", $inlong, $matches); return !empty($matches[0]); } $tocheck = 'zaba'; $inlong = 'dzamburu n koma baba n dingo'; $d = doescontain($tocheck, $inlong); print_r($d);
Output for 4.3.0 - 7.2.0