3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // text includes line breaks $text_with_line_breaks = "1st\n2nd\3rd\n"; $body=highlight_string ( $text_with_line_breaks, $return=TRUE); // $body is a single line, without line breaks ?>
Output for 4.3.0 - 7.1.0