3v4l.org

run code in 300+ PHP versions simultaneously
<?php $regex = '/(.*(?=ab))/'; $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);

preferences:
84.59 ms | 402 KiB | 5 Q