3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $file = tempnam(sys_get_temp_dir()); file_put_contents(<<<HEREDOC lots of lines HEREDOC); var_dump(nl2br(file_get_contents($file)));
Output for 5.4.0 - 5.4.23
Parse error: syntax error, unexpected end of file in /in/lX6Vb on line 10
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected $end in /in/lX6Vb on line 10
Process exited with code 255.