3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php if (!$lastAccess) $lastAccess = time(); else { $lastAccess -= time(); } var_dump($lastAccess); if ($lastAccess > 5) { echo('session timeout'); }
Output for 5.0.4 - 7.2.0
Notice: Undefined variable: lastAccess in /in/2Lb2i on line 2 int(1430839758) session timeout
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: lastAccess in /in/2Lb2i on line 2 int(1430839758) session timeout