3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $regex = '/(^aaaa)(.*(?=ab\K))/'; $subject = "aaaaxyzaabaa"; // Comment/uncomment below as wanted. // All 3 functions are vulnerable (note, other functions are affected as well) preg_match_all($regex,$subject,$x); var_dump($x);
based on IKiW9
Output for 5.4.45, 5.5.29 - 5.5.35, 5.6.13 - 7.2.0
Warning: preg_match_all(): Get subpatterns list failed in /in/uQaEB on line 8 array(0) { }
Output for 5.3.18 - 5.4.44, 5.5.24 - 5.5.28, 5.6.8 - 5.6.12

Process exited with code 139.