3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $cadena = "Esto\r\nes\n\runa\ncadena\r"; echo nl2br($cadena); ?>
Output for 4.3.0 - 7.1.0
Esto<br /> es<br /> una<br /> cadena<br />