3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "<h1>HOME</h1> <p> You are now logged in, {$_SESSION[ 'first_name' ]} {$_SESSION[ 'last_name' ] } </p>" ;
Output for 8.3.0 - 8.3.25, 8.4.1 - 8.4.12
Warning: Undefined global variable $_SESSION in /in/5B9sV on line 4 Warning: Trying to access array offset on null in /in/5B9sV on line 4 Warning: Undefined global variable $_SESSION in /in/5B9sV on line 4 Warning: Trying to access array offset on null in /in/5B9sV on line 4 <h1>HOME</h1> <p> You are now logged in, </p>
Output for 8.1.0 - 8.1.33, 8.2.0 - 8.2.29
Warning: Undefined global variable $_SESSION in /in/5B9sV on line 4 Warning: Trying to access array offset on value of type null in /in/5B9sV on line 4 Warning: Undefined global variable $_SESSION in /in/5B9sV on line 4 Warning: Trying to access array offset on value of type null in /in/5B9sV on line 4 <h1>HOME</h1> <p> You are now logged in, </p>
Output for 8.0.0 - 8.0.30
Warning: Undefined variable $_SESSION in /in/5B9sV on line 4 Warning: Trying to access array offset on value of type null in /in/5B9sV on line 4 Warning: Undefined variable $_SESSION in /in/5B9sV on line 4 Warning: Trying to access array offset on value of type null in /in/5B9sV on line 4 <h1>HOME</h1> <p> You are now logged in, </p>
Output for 7.4.0 - 7.4.25, 7.4.27 - 7.4.33
Notice: Undefined variable: _SESSION in /in/5B9sV on line 4 Notice: Trying to access array offset on value of type null in /in/5B9sV on line 4 Notice: Undefined variable: _SESSION in /in/5B9sV on line 4 Notice: Trying to access array offset on value of type null in /in/5B9sV on line 4 <h1>HOME</h1> <p> You are now logged in, </p>
Output for 7.3.32, 7.4.26
<h1>HOME</h1> <p> You are now logged in, </p>
Output for 7.1.25 - 7.1.32, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.3.33
Notice: Undefined variable: _SESSION in /in/5B9sV on line 4 Notice: Undefined variable: _SESSION in /in/5B9sV on line 4 <h1>HOME</h1> <p> You are now logged in, </p>

preferences:
202.76 ms | 414 KiB | 5 Q