3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $loggedOutLink = '<a href="logout.php">Log out</a>'; $loggedInLink = '<a href="login.php">Log in</a>'; if ($_SESSION['isLoggedIn']===TRUE){ echo $loggedInLink; } else { echo $loggedOutLink; } ?>
Output for 5.0.4 - 5.6.28, 7.0.0 - 7.1.0
Notice: Undefined variable: _SESSION in /in/APIqA on line 5 <a href="logout.php">Log out</a>
Output for hhvm-3.10.0 - 3.12.0
Notice: Undefined index: isLoggedIn in /in/APIqA on line 5 <a href="logout.php">Log out</a>
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: _SESSION in /in/APIqA on line 5 <a href="logout.php">Log out</a>