3v4l.org

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

preferences:
38.01 ms | 402 KiB | 5 Q