3v4l.org

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

preferences:
42.06 ms | 402 KiB | 5 Q