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 ?>
Output for 5.4.0 - 5.4.23, 5.5.0 - 5.5.7
Parse error: syntax error, unexpected '$body' (T_VARIABLE) in /in/J8S1t on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_VARIABLE in /in/J8S1t on line 4
Process exited with code 255.

preferences:
185.49 ms | 1395 KiB | 68 Q