3v4l.org

run code in 300+ PHP versions simultaneously
<?php $regex = '/((.a|aaa)|(?=xyz\Kaa))./'; $subject = "aaaaxyzaabaa"; // Comment/uncomment below as wanted. // All 3 functions are vulnerable (note, other functions are affected as well) $x=preg_replace($regex, '\0',$subject); var_dump($x);

preferences:
96.45 ms | 402 KiB | 5 Q