3v4l.org

run code in 300+ PHP versions simultaneously
<?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 ?>

preferences:
37.99 ms | 402 KiB | 5 Q