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']); echo(time()+5); if ($_SESSION['lastAccess'] > time()+5) { echo('session timeout'); }
based on StfUI
Output for 4.3.0 - 7.2.0
int(1430839901) 1430839906