3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = 'foo'; echo <<<BAR $foo BAR; echo <<<BAR $foo. BAR;
based on 19bhe
Output for 7.3.16 - 7.3.28, 7.4.4 - 7.4.16, 8.0.0 - 8.0.3
foofoo.
Output for 7.1.0 - 7.1.17, 7.2.0 - 7.2.33
Parse error: syntax error, unexpected end of file in /in/VQqm7 on line 12
Process exited with code 255.