3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = "This\ntext\nbreaks\nlines."; $string = nl2br($string); print $string; ?>
based on Llkoo
Output for 4.3.0 - 7.1.0
This<br /> text<br /> breaks<br /> lines.