3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php print_r(time()); declare('FOO', time()); class BAR{ public static BAZ = FOO; } sleep 5; print_r(BAR::BAZ);
Output for 5.4.0 - 5.4.10
Parse error: syntax error, unexpected ''FOO'' (T_CONSTANT_ENCAPSED_STRING), expecting identifier (T_STRING) in /in/5tZkS on line 3
Process exited with code 255.
Output for 5.2.13 - 5.3.20
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting T_STRING in /in/5tZkS on line 3
Process exited with code 255.