3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'test' . chr(0) . "\n" . 'test' . "\r\n" ; mb_ereg('[\0\r\n]', $string, $matches); var_dump($matches);

preferences:
38.71 ms | 402 KiB | 5 Q