3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo <<<FOO FOO4 FOO,2;
Output for 7.3.10 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.34, 8.2.0 - 8.2.30, 8.3.0 - 8.3.30, 8.4.1 - 8.4.18, 8.5.0 - 8.5.3
FOO42
Output for 7.3.0 - 7.3.9
Parse error: syntax error, unexpected '4' (T_LNUMBER), expecting ',' or ';' in /in/PGCMI on line 4
Process exited with code 255.
Output for 7.1.0 - 7.1.33, 7.2.0 - 7.2.33
Parse error: syntax error, unexpected end of file, expecting variable (T_VARIABLE) or heredoc end (T_END_HEREDOC) or ${ (T_DOLLAR_OPEN_CURLY_BRACES) or {$ (T_CURLY_OPEN) in /in/PGCMI on line 6
Process exited with code 255.

preferences:
104.31 ms | 1600 KiB | 4 Q