3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $_SESSION['logged_on'] = false; $_SESSION['username'] = 'username'; if (empty($_SESSION['logged_on']) || empty($_SESSION['username'])) { echo 'not logged in'; }
Output for 4.3.0 - 7.1.0
not logged in