3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php session_start(); if(isset($_SESSION['uname']) ){ echo("Authorised"); } else { echo("Unauthorised"); } ?> <html> <body> Login Successful </body> </html>
Output for 5.2.3 - 7.1.0
Unauthorised <html> <body> Login Successful </body> </html>
Output for 4.3.2 - 5.2.2
Warning: session_start(): Cannot send session cookie - headers already sent in /in/EPJJn on line 2 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/EPJJn:2) in /in/EPJJn on line 2 Unauthorised <html> <body> Login Successful </body> </html>
Output for 4.3.0 - 4.3.1
Warning: session_start() [http://www.php.net/function.session-start]: Cannot send session cookie - headers already sent in /in/EPJJn on line 2 Warning: session_start() [http://www.php.net/function.session-start]: Cannot send session cache limiter - headers already sent (output started at /in/EPJJn:2) in /in/EPJJn on line 2 Unauthorised <html> <body> Login Successful </body> </html>