3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $bla = "damn"; const abc = <<<HEREDOC $bla HEREDOC; print abc;
Output for 5.4.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.