3v4l.org

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

preferences:
40.65 ms | 402 KiB | 5 Q