3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = "testabc"; $regex = "(^abc)A"; for ($i = 0; $i < strlen($string); $i++) { var_dump(preg_match($regex, $string, $match, 0, $i)); }
Output for 4.3.3 - 7.2.0
int(0) int(0) int(0) int(0) int(0) int(0) int(0)
Output for 4.3.0 - 4.3.2
Warning: Wrong parameter count for preg_match() in /in/I454H on line 8 NULL Warning: Wrong parameter count for preg_match() in /in/I454H on line 8 NULL Warning: Wrong parameter count for preg_match() in /in/I454H on line 8 NULL Warning: Wrong parameter count for preg_match() in /in/I454H on line 8 NULL Warning: Wrong parameter count for preg_match() in /in/I454H on line 8 NULL Warning: Wrong parameter count for preg_match() in /in/I454H on line 8 NULL Warning: Wrong parameter count for preg_match() in /in/I454H on line 8 NULL