3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mesaj= "Test1\nTest2"; echo $dogruMesaj = str_replace("\n", "<br>", $mesaj);

preferences:
59.05 ms | 404 KiB | 5 Q