3v4l.org

run code in 300+ PHP versions simultaneously
<?php print <<<END This uses the "here document" syntax to output multiple lines with $variable interpolation. Note that the here document terminator must appear on a line with just a semicolon no extra whitespace! END;
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.7
Warning: Undefined variable $variable in /in/8R8HD on line 5 This uses the "here document" syntax to output multiple lines with interpolation. Note that the here document terminator must appear on a line with just a semicolon no extra whitespace!
Output for 7.3.16 - 7.3.31, 7.4.3 - 7.4.33
Notice: Undefined variable: variable in /in/8R8HD on line 5 This uses the "here document" syntax to output multiple lines with interpolation. Note that the here document terminator must appear on a line with just a semicolon no extra whitespace!
Output for 7.3.32 - 7.3.33
This uses the "here document" syntax to output multiple lines with interpolation. Note that the here document terminator must appear on a line with just a semicolon no extra whitespace!
Output for 5.4.0 - 5.4.30, 7.2.29 - 7.2.33
Parse error: syntax error, unexpected end of file in /in/8R8HD on line 8
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected $end in /in/8R8HD on line 8
Process exited with code 255.

preferences:
146.3 ms | 401 KiB | 200 Q