3v4l.org

run code in 300+ PHP versions simultaneously
<?php $txt = "hello\n world"; echo $txt; echo nl2br($txt);

preferences:
36.75 ms | 402 KiB | 5 Q