Run ❯
Get your
own PHP
server
Result Size:
625 x 565
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <body> <pre> <?php $x = "Hello\nWorld"; echo $x; ?> </pre> <p>To preserve any whitespace or line breaks, we have wrapped the result in a PRE element</p> </body> </html>
Hello World
To preserve any whitespace or line breaks, we have wrapped the result in a PRE element.