3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(preg_match('/^(A{1,2}B)+$/',str_repeat('AB',8000)));
based on 3Y245
Output for 7.0.0 - 7.2.0
bool(false)
Output for 5.3.20 - 5.4.40, 5.6.28

Process exited with code 139.
Output for 5.4.41 - 5.6.21
int(1)