3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php if (preg_match("(.)\1{9,}", "aaaaaaaaaaaaaaa")) { echo "A match was found."; } else { echo "A match was not found."; } if (preg_match("(.)\1{9,}", "aaa")) { echo "A match was found."; } else { echo "A match was not found."; } ?>

Abusive script

This script was stopped while abusing our resources

Output for 4.3.11 - 5.6.30, 7.0.0 - 7.1.7
Warning: preg_match(): Unknown modifier '' in /in/tM9Le on line 3 A match was not found. Warning: preg_match(): Unknown modifier '' in /in/tM9Le on line 9 A match was not found.
Output for hhvm-3.10.1, hhvm-3.13.2, hhvm-3.17.3
Warning: Unknown modifier '': [(.){9,}] in /in/tM9Le on line 3 A match was not found. Warning: Unknown modifier '': [(.){9,}] in /in/tM9Le on line 9 A match was not found.
Output for hhvm-3.11.1 - 3.12.14, hhvm-3.15.4

Process exited with code 137.
Output for 4.3.0 - 4.3.10
Warning: Unknown modifier '' in /in/tM9Le on line 3 A match was not found. Warning: Unknown modifier '' in /in/tM9Le on line 9 A match was not found.