3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Abc { public const TICKET_SEND_AUTO_RESPONSE = 0; public function test() { $s = <<<XML <sendautoresponder>{self::TICKET_SEND_AUTO_RESPONSE}</sendautoresponder> XML; return $s; } } $t = new Abc(); var_dump($t->test());
based on i8tMd
Output for 7.1.0 - 7.2.6
string(84) " <sendautoresponder>{self::TICKET_SEND_AUTO_RESPONSE}</sendautoresponder>"
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.0.20
Parse error: syntax error, unexpected 'const' (T_CONST), expecting variable (T_VARIABLE) in /in/d2pFa on line 5
Process exited with code 255.
Output for hhvm-3.15.4

Process exited with code 137.