3v4l.org

run code in 300+ PHP versions simultaneously
<?php $quotedString = '"(?:[^"\\\\]*(?:\\\\.(*FAIL))?)*"'; $regex = "($quotedString)"; $string = 'This is "A test of the \"Emergency System\" here..."'; var_dump(preg_match($regex, $string, $match), $match);

preferences:
47.99 ms | 402 KiB | 5 Q