<?php echo <<<HEREDOC TEST HEREDOC; // Because you are presumably rtrim()ing the input, if the last statement in the file is a heredoc/nowdoc // it results in a syntax error, because the trailing lf is part of the terminator. This comment will make // it work. Just do $input = rtrim($input) . "\n"; to fix. Strictly you should keep the trailing line break // anyway because of https://stackoverflow.com/a/729795/889949
You have javascript disabled. You will not be able to edit any code.