3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo <<<EOF <?php echo <<<'TEST'\r\nFoo\r\nTEST; EOF;
Output for 5.6.30, 7.0.0 - 7.2.9
Parse error: syntax error, unexpected end of file, expecting variable (T_VARIABLE) or heredoc end (T_END_HEREDOC) or ${ (T_DOLLAR_OPEN_CURLY_BRACES) or {$ (T_CURLY_OPEN) in /in/OD5mb on line 6
Process exited with code 255.
Output for hhvm-3.22.0
Fatal error: Uncaught Error: Unterminated heredoc at end of file (Line: 3, Char: 12) syntax error, unexpected $end in /in/OD5mb:-1 Stack trace: #0 {main}
Process exited with code 255.
Output for hhvm-3.15.4 - 3.21.3
Fatal error: Uncaught Error: Unterminated heredoc at end of file (Line: 3, Char: 12) syntax error, unexpected $end in /in/OD5mb:3 Stack trace: #0 {main}
Process exited with code 255.