3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php if (empty($_SESSION['lastAccess'])) $_SESSION['lastAccess'] = time(); else { $_SESSION['lastAccess'] -= time(); } var_dump($_SESSION['lastAccess']); if ($_SESSION['lastAccess'] > time()+5) { echo('session timeout'); }
based on vgSnU
Output for 4.3.0 - 7.2.0
int(1430839873)