3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(preg_match('/^(A{1,2}B)+$/',str_repeat('AB',4000)));
based on uA3J6
Output for 7.0.0 - 7.2.6
bool(false)
Output for 5.3.23 - 5.6.28
int(1)
Output for 5.3.20 - 5.3.22

Process exited with code 139.