3v4l.org

run code in 300+ PHP versions simultaneously
<?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.3.2 - 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.

preferences:
178.83 ms | 1386 KiB | 37 Q