3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php print_r(time()); define('FOO', time()); class BAR{ var static $BAZ = FOO; } sleep(5); print_r(BAR::$BAZ);
Output for 5.4.0 - 5.4.10
Parse error: syntax error, unexpected 'static' (T_STATIC), expecting variable (T_VARIABLE) in /in/b12m7 on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.20
Parse error: syntax error, unexpected T_STATIC, expecting T_VARIABLE in /in/b12m7 on line 5
Process exited with code 255.