3v4l.org

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

preferences:
37.6 ms | 402 KiB | 5 Q