3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern = "/^(.*)$/"; $string = "the quick brown fox jumped over the lazy dog"; preg_match($pattern, $string, $match); var_dump($match[1]);

preferences:
38.82 ms | 402 KiB | 5 Q