3v4l.org

run code in 300+ PHP versions simultaneously
<?php session_start(); if(isset($_SESSION['uname']) ){ echo("Authorised"); } else { echo("Unauthorised"); } ?> <html> <body> Login Successful </body> </html>

preferences:
40.72 ms | 402 KiB | 5 Q