3v4l.org

run code in 300+ PHP versions simultaneously
<?php $line = "###FLAG###\r\n###FLAG###"; // no modifiers preg_match('~###FLAG###.*###FLAG###~', $line, $matches); var_dump($matches); // with 's' modifier preg_match('~###FLAG###.*###FLAG###~s', $line, $matches); var_dump($matches);

preferences:
43.99 ms | 409 KiB | 6 Q