3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface SessionDurations{ const SESSION_LIFETIME_30_DAYS = 30 const SESSION_LIFETIME_90_DAYS = self::SESSION_LIFETIME_30_DAYS * 3; } echo SessionDurations::SESSION_LIFETIME_90_DAYS;
Output for 7.1.0 - 7.1.13, 7.2.0 - 7.2.1
Parse error: syntax error, unexpected 'const' (T_CONST), expecting ',' or ';' in /in/bM1Jj on line 5
Process exited with code 255.

preferences:
180.48 ms | 1395 KiB | 23 Q