3v4l.org

run code in 300+ PHP versions simultaneously
<?php <?php $str = <<<EOD Example of string spanning multiple lines using heredoc syntax. EOD; ?>
Output for 7.1.0 - 7.1.17, 7.2.0 - 7.2.7
Parse error: syntax error, unexpected '<', expecting end of file in /in/5Kbuu on line 2
Process exited with code 255.

preferences:
170.76 ms | 1395 KiB | 33 Q