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.28, 8.2.0 - 8.2.19, 8.3.0 - 8.3.7
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:
187.6 ms | 402 KiB | 209 Q