3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bla = "damn"; const abc = <<<HEREDOC $bla HEREDOC; print abc;
Output for 5.4.0 - 5.4.22, 5.5.0 - 5.5.6
Parse error: syntax error, unexpected '$bla' (T_VARIABLE), expecting quoted-string and whitespace (T_ENCAPSED_AND_WHITESPACE) or heredoc end (T_END_HEREDOC) in /in/nV0in on line 6
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_VARIABLE, expecting T_ENCAPSED_AND_WHITESPACE or T_END_HEREDOC in /in/nV0in on line 6
Process exited with code 255.

preferences:
180.21 ms | 1395 KiB | 65 Q