3v4l.org

run code in 500+ PHP versions simultaneously
<?php const int = 3; var_dump(int); ?>
Output for 8.1.0 - 8.1.27, 8.2.0 - 8.2.14, 8.3.0 - 8.3.5
Parse error: syntax error, unexpected token "(int)" in /in/moVUK on line 4
Process exited with code 255.
Output for 5.5.22
Parse error: syntax error, unexpected '(int)' (int) (T_INT_CAST) in /in/moVUK on line 4
Process exited with code 255.
Output for 4.3.0
Parse error: parse error, unexpected T_CONST in /in/moVUK on line 3
Process exited with code 255.

preferences:
51.03 ms | 688 KiB | 3 Q