3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = <<<EOD Example of string spanning multiple lines using heredoc syntax. EOD; echo $str; $str2 = " Example of string spanning multiple lines using heredoc syntax." echo $str2; ?>
Output for 7.1.0 - 7.1.17, 7.2.0 - 7.2.7
Parse error: syntax error, unexpected 'echo' (T_ECHO) in /in/gt5hu on line 15
Process exited with code 255.

preferences:
174.22 ms | 1395 KiB | 33 Q