3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php /////////////////////////////////////// session_start(); $_SESSION['csskey'] = "hello"; include "./pteam.php"; include "./pop.php"; $online = mysql_fetch_array(mysql_query("SELECT COUNT(`id`) FROM chat_users WHERE ltime>'".intval(time()-$offline)."'")); $TimeZone="15.50"; $New_Time = time() + ($TimeZone * 60 * 60); $_time=date("H:i",$New_Time); /////////////////////////////////// <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1252"><meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content="Agnichat.com Live Chat"/> <meta name="keywords" content="Agnichat.com,chat,live,talk,online,ttalk,mtalk" /><title>Agnichat.com | Free Open Live Chat 12:29</title><style type="text/css"> echo"<title>MasumChat.Com | Free Open Live Chat $_time</title>"; echo '<style type="text/css"> body{ margin: 0px auto; font-family : Verdana, arial; font-weight : normal; font-size : small; color : #333333; background-color : #ffffff; padding : 0px; } a:active, a:visited, a:link { color: #4E72A2; text-decoration: none; } a:hover { color: #990000; text-decoration: underline; } .imgcontainer { text-align: center; margin: 0px 0px 0; } img.avatar { width: 20%; border-radius: 50%; } .sn{ background-color:#ffffff; color:#009688; font-size:14px; border-color:#E6E6E6; border-width:1px; border-style:solid; margin-bottom:3px; margin-top:6px; margin-left:2px; margin-right:0px; padding-top:2px; padding-bottom:2px; padding-left:2px; padding-right:2px; } .fm{ background-color: #ffffff; border-color:#E6E6E6; border-width:1px; border-style:solid; margin-bottom:4px; margin-top:4px; margin-left:4px; padding-top:2px; padding-bottom:2px; padding-left:1px; padding-right:1px; } .m2 { background-color: #009688; font-size:13px; color:#ffffff; border-bottom-color:#6698FF; border-bottom-width:7px; border-bottom-style:solid; margin-bottom:0px; padding-top:7px; padding-bottom:2px; padding-left:6px; padding-right:0px;border:1px dotted #afcddc} .m3 { background-color: #00CED1; font-size:15px; color:#ffffff; border-bottom-color:#6698FF; border-bottom-width:20px; border-bottom-style:solid; margin-bottom:5px; padding-top:5px; padding-bottom:5px; padding-left:6px; padding-right:0px;border-top-width:2px;border-bottom:2px solid #abcdef} background:#2554C7;font-size:13px; padding:0px; margin:0; color:#000;border:1px solid #2554c7;} .path2{ background:#FFF;font-size:13px; padding:13px; margin:0; color:#000;border:1px solid #FFF;} .aman{ background:#E6E6FA;font-size:105%;font-weight: bold; padding:3px; margin:0; color:#000;border:0px solid #B0E0E6;} .mm { color: #1569c7; border-width: 1px; border-color: #eeeeee; border-style: solid; padding-top: 5px; padding-bottom: 3px; font-size: 14px; background-repeat: repeat-x; margin-top: 1px; margin-bottom: 1px; margin-left: 3px; margin- right: 3px; background- attechment: scroll; background- position: top; text-shadow: 2px 2px #ececec; font-weight: bold; padding-lef} .form { color:#FF00FF; font-size:14px; border-top-color:#f2d7ee; border-top-width:0px; border-top-style:solid; border-bottom-color:#f2d7ee; border-bottom-width:0px; border-bottom-style:solid; margin-bottom:0px; padding-top:0px; padding-bottom:0px; padding-left:3px; padding-right:3px;} .formin { color :black; margin-bottom:0px; padding-top:0px; padding-bottom:0px; padding-left:3px; padding-right:3px;} input[type=submit] {background:#00CED1;font style:bold;color:blue;border:1px solid #grey;padding-top: 5px;padding-bottom:5px; margin:0px} select{background:white;border: 1px solid grey;padding-top: 0px;padding-bottom: 0px;} input{background:white;border: 1px solid grey;padding-top: 0px;padding-bottom: 0px;} input[type=file] {background:white;border: 1px solid gray;padding-top: 7px;padding-bottom: 7px;width:50%;} </style>'; /////////////////////////////////////// //////////////////////////////////////// echo "</head><body>"; echo $contents; echo "<div class=\"m3\" align=\"center\"> <center><b>♥MasumChat.CoM♥</b></div><center><img src=\"punnu.png\" hieght=\"900\" width=\"150\" /></center>"; echo "</br><div class=\"mm\"><i> $online[0] users in ChaT</i></div></p>"; echo "<form action=\"./in.php\" method=\"post\"><div>"; echo "<div class='sn'>"; echo"<div class='form'><b>Your Nickname:</b><br>"; echo "<div class='formin'><input name=\"nick\" maxlength='7' style='font-size: 13px;height:25px;'/></div>"; echo "<div class='form'><b>Gender:</b></div>"; echo "<div class='formin'><select name=\"g\" style='font-size:13px;height:25px;'/></div>"; echo "<option value=\"m\">Male</optilog>"; echo "<option value=\"f\">Female</option>"; echo "</select></div>"; echo"<div class='form'><b>Age:</b></div>"; echo "<div class='formin'><input title=\"age\" name=\"a\" size=\"4\" maxlength='2' style='font-size:13px;height:25px;'/></div>"; echo "<div class='form'><b>Show smilies?</b></div>"; echo "<div class='formin'><select name=\"sm\" style='font-size:13px;height:25px;'/></div>"; echo "<option value=\"1\">Yes</option>"; echo "<option value=\"0\">No</option>"; echo "</select></div>"; echo"<div class='form'><b>Nickname color:</b></div>"; echo "<div class='formin'><select name=\"c\" style='font-size:13px;height:25px;left:20px;right:20px;'/></div>"; echo "<option value=\"000000\">Black</option>"; echo "<option value=\"ff0000\">Red</option>"; echo "<option value=\"00ffff\">Turquoise</option>"; echo "<option value=\"ee82ee\">Voilet</option>"; echo "<option value=\"808080\">Dark Grey</option>"; echo "<option value=\"ff8040\">Orange</option>"; echo "<option value=\"804000\">Brown</option>"; echo "<option value=\"00ff00\">Green</option>"; echo "<option value=\"800080\">Purple</option>"; echo "<option value=\"ffff00\">Yellow</option>"; echo "<option value=\"FF00FF\">Pink</option>"; echo "<option value=\"38ACEC\">Butterfly Blue</option>"; echo "<option value=\"E55451\">Valentine Red</option>"; echo "<option value=\"408080\">Grass Green</option>"; echo "<option value=\"008000\">Dark Green</option>"; echo "<option value=\"800000\">Burgundy</option>"; echo "<option value=\"0000a0\">Dark Blue</option></select><br />"; echo "<br /><input type=\"submit\" value=\"Enter\"/></div></div>"; echo '<br/><div class="m3" align="center"><b>MasumChat.Com</b></div>'; echo"</body>"; echo"</html>"; ?>
Output for 7.0.0 - 7.2.9
Parse error: syntax error, unexpected '<', expecting end of file in /in/24ujv on line 14
Process exited with code 255.
Output for hhvm-3.22.0
Fatal error: Uncaught Error: syntax error, unexpected '<', expecting $end in /in/24ujv:-1 Stack trace: #0 {main}
Process exited with code 255.
Output for hhvm-3.11.1 - 3.21.3
Fatal error: Uncaught Error: syntax error, unexpected '<', expecting $end in /in/24ujv:14 Stack trace: #0 {main}
Process exited with code 255.
Output for hhvm-3.10.1
Fatal error: syntax error, unexpected '<', expecting $end in /in/24ujv on line 14
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.6.30
Parse error: syntax error, unexpected '<' in /in/24ujv on line 14
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected '<' in /in/24ujv on line 14
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/24ujv on line 14
Process exited with code 255.