3v4l.org

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

preferences:
33.21 ms | 402 KiB | 5 Q