3v4l.org

run code in 300+ PHP versions simultaneously
<?php session_start(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>Admin Panel</title> <link href="style.css" type="text/css" rel="stylesheet" /> </head> <body id="admin"> <div id="wrapper"> <?php if(isset($_SESSION['name'])) { echo "<h3>Welcome to the Admin Panel, ". $_SESSION['name']."</h3>"; } else { header('location: index.php'); } ?> <p><a href="logout.php">Logout</a></p> </div> </body> </html>
Output for git.master, git.master_jit, rfc.property-hooks
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>Admin Panel</title> <link href="style.css" type="text/css" rel="stylesheet" /> </head> <body id="admin"> <div id="wrapper"> Warning: Cannot modify header information - headers already sent by (output started at /in/PBfLB:2) in /in/PBfLB on line 16 <p><a href="logout.php">Logout</a></p> </div> </body> </html>

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
39.66 ms | 402 KiB | 8 Q