3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $regex = '/(.*(?=ab\K))/'; $subject = "aaaaxyzaabaa"; // Comment/uncomment below as wanted. // All 3 functions are vulnerable (note, other functions are affected as well) preg_match($regex,$subject,$x); var_dump($x);
based on YZrXl
Output for 5.4.45, 5.5.29 - 5.5.35, 5.6.13 - 7.2.0
Warning: preg_match(): Get subpatterns list failed in /in/gfKHm 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.