3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo <<<EOT My name is "$name". I am printing some $foo->foo. Now, I am printing some {$foo->bar[1]}. This should print a capital 'A': \x41 EOT;
Output for 5.4.0 - 5.6.28, 7.0.0 - 7.0.6
Parse error: syntax error, unexpected end of file in /in/4otbd on line 7
Process exited with code 255.
Output for hhvm-3.10.0 - 3.12.0
Fatal error: Unterminated heredoc at end of file (Line: 5, Char: 38) syntax error, unexpected $end in /in/4otbd on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Parse error: syntax error, unexpected $end in /in/4otbd on line 7
Process exited with code 255.