3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = "testabc"; $regex = "(^abc)"; for ($i = 0; $i < strlen($string); $i++) { var_dump(preg_match($regex, $string, $match, 0, $i)); }
based on 6vNHQ