3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php ?> <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>D1&amp;MTG - BULLET THEORY Contest</title> <link type="text/css" rel="stylesheet" href="//ajax.aspnetcdn.com/ajax/jquery.ui/1.10.0/themes/base/jquery-ui.css"/> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.0/jquery-ui.min.js"></script> <style> a { color:white; } .white { font-family:Arial,Helvetica,sans-serif; color:white; } </style> <script> var CurrentTab = 0; var TabRefresh; $.ajaxSetup( { cache: false }); function Registration() { $.ajax( { type: "GET", url: "//<?php echo $_SERVER['HTTP_HOST']; ?>/bullet-theory/ajax.php?mode=registration_form", success: function(data, textStatus) { $("#registration").dialog( { modal: true, width: 500, height: 300, position: "center", }); $("#registration").html(data); }, error: function(XMLHttpRequest, textStatus, errorThrown) { alert('Something went wrong with loading the server contents!\nError: '+textStatus + '\n' + errorThrown); } }); } $(function() { $("#stats").tabs( { beforeLoad: function(event, ui) { clearInterval(TabRefresh); TabRefresh = setInterval(function(){$("#stats").tabs('load', $("#stats").tabs("option","active"));}, 5000); ui.jqXHR.error(function() { ui.panel.html("Couldn't load this tab. Please try again later."); }); }, }); }); </script> </head> <body background="//farm9.staticflickr.com/8318/7944546766_9208c014ae_z_d.jpg"> <div id="registration" title="Registration" style="display:none; font-size:12px;">Loading...</div> <span class="white"><h1>D1&amp;MTG - BULLET THEORY Contest</h1></span> <div> <span class="white"> <h2><a href="javascript:Registration();">Registration</a></h2> <h1>Stats</h1> <div id="stats" style="font-size:12px;"> <ul> <li><a href="ajax.php?mode=stats&amp;type=1-1">Session #1</a></li> <li><a href="ajax.php?mode=stats&amp;type=1-2">Session #2</a></li> <li><a href="ajax.php?mode=stats&amp;type=0-1">TEST SESSION</a></li> </ul> </div> <br> <b>Functionality</b> <br> Sessions start and end by the time (same for registration), disable registrations <br> Maintain tables with points: 1 KILL, 2 HEADSHOT, -1 DEATH, -2 TEAMKILL, 2 MELEE, order by points <br> <br> <b>Meter config</b> <br> No medicing, no health recharging, no armor, no dragging, respawn (8 seconds), RLV, no incap limit </span> </div> <br> <br> <div align=center class="white"> Version: 5 ALPHA <i>(11FEB2013)</i> <br> ©2013, <a href="http://www.d1mtg.net">D1&amp;MTG Defense Inc.</a> <br> <b>Disclaimer:</b> Second Life© and Linden Lab® are trademarks or registered trademarks of Linden Research, Inc. All rights reserved. No infringement is intended. </div> </body> </html> <?php ?>
Output for 5.3.0 - 7.1.0
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>D1&amp;MTG - BULLET THEORY Contest</title> <link type="text/css" rel="stylesheet" href="//ajax.aspnetcdn.com/ajax/jquery.ui/1.10.0/themes/base/jquery-ui.css"/> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.0/jquery-ui.min.js"></script> <style> a { color:white; } .white { font-family:Arial,Helvetica,sans-serif; color:white; } </style> <script> var CurrentTab = 0; var TabRefresh; $.ajaxSetup( { cache: false }); function Registration() { $.ajax( { type: "GET", url: "// Notice: Undefined index: HTTP_HOST in /in/XinBd on line 34 /bullet-theory/ajax.php?mode=registration_form", success: function(data, textStatus) { $("#registration").dialog( { modal: true, width: 500, height: 300, position: "center", }); $("#registration").html(data); }, error: function(XMLHttpRequest, textStatus, errorThrown) { alert('Something went wrong with loading the server contents!\nError: '+textStatus + '\n' + errorThrown); } }); } $(function() { $("#stats").tabs( { beforeLoad: function(event, ui) { clearInterval(TabRefresh); TabRefresh = setInterval(function(){$("#stats").tabs('load', $("#stats").tabs("option","active"));}, 5000); ui.jqXHR.error(function() { ui.panel.html("Couldn't load this tab. Please try again later."); }); }, }); }); </script> </head> <body background="//farm9.staticflickr.com/8318/7944546766_9208c014ae_z_d.jpg"> <div id="registration" title="Registration" style="display:none; font-size:12px;">Loading...</div> <span class="white"><h1>D1&amp;MTG - BULLET THEORY Contest</h1></span> <div> <span class="white"> <h2><a href="javascript:Registration();">Registration</a></h2> <h1>Stats</h1> <div id="stats" style="font-size:12px;"> <ul> <li><a href="ajax.php?mode=stats&amp;type=1-1">Session #1</a></li> <li><a href="ajax.php?mode=stats&amp;type=1-2">Session #2</a></li> <li><a href="ajax.php?mode=stats&amp;type=0-1">TEST SESSION</a></li> </ul> </div> <br> <b>Functionality</b> <br> Sessions start and end by the time (same for registration), disable registrations <br> Maintain tables with points: 1 KILL, 2 HEADSHOT, -1 DEATH, -2 TEAMKILL, 2 MELEE, order by points <br> <br> <b>Meter config</b> <br> No medicing, no health recharging, no armor, no dragging, respawn (8 seconds), RLV, no incap limit </span> </div> <br> <br> <div align=center class="white"> Version: 5 ALPHA <i>(11FEB2013)</i> <br> ©2013, <a href="http://www.d1mtg.net">D1&amp;MTG Defense Inc.</a> <br> <b>Disclaimer:</b> Second Life© and Linden Lab® are trademarks or registered trademarks of Linden Research, Inc. All rights reserved. No infringement is intended. </div> </body> </html>
Output for 4.3.0 - 5.2.17
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>D1&amp;MTG - BULLET THEORY Contest</title> <link type="text/css" rel="stylesheet" href="//ajax.aspnetcdn.com/ajax/jquery.ui/1.10.0/themes/base/jquery-ui.css"/> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.0/jquery-ui.min.js"></script> <style> a { color:white; } .white { font-family:Arial,Helvetica,sans-serif; color:white; } </style> <script> var CurrentTab = 0; var TabRefresh; $.ajaxSetup( { cache: false }); function Registration() { $.ajax( { type: "GET", url: "// Notice: Undefined index: HTTP_HOST in /in/XinBd on line 34 /bullet-theory/ajax.php?mode=registration_form", success: function(data, textStatus) { $("#registration").dialog( { modal: true, width: 500, height: 300, position: "center", }); $("#registration").html(data); }, error: function(XMLHttpRequest, textStatus, errorThrown) { alert('Something went wrong with loading the server contents!\nError: '+textStatus + '\n' + errorThrown); } }); } $(function() { $("#stats").tabs( { beforeLoad: function(event, ui) { clearInterval(TabRefresh); TabRefresh = setInterval(function(){$("#stats").tabs('load', $("#stats").tabs("option","active"));}, 5000); ui.jqXHR.error(function() { ui.panel.html("Couldn't load this tab. Please try again later."); }); }, }); }); </script> </head> <body background="//farm9.staticflickr.com/8318/7944546766_9208c014ae_z_d.jpg"> <div id="registration" title="Registration" style="display:none; font-size:12px;">Loading...</div> <span class="white"><h1>D1&amp;MTG - BULLET THEORY Contest</h1></span> <div> <span class="white"> <h2><a href="javascript:Registration();">Registration</a></h2> <h1>Stats</h1> <div id="stats" style="font-size:12px;"> <ul> <li><a href="ajax.php?mode=stats&amp;type=1-1">Session #1</a></li> <li><a href="ajax.php?mode=stats&amp;type=1-2">Session #2</a></li> <li><a href="ajax.php?mode=stats&amp;type=0-1">TEST SESSION</a></li> </ul> </div> <br> <b>Functionality</b> <br> Sessions start and end by the time (same for registration), disable registrations <br> Maintain tables with points: 1 KILL, 2 HEADSHOT, -1 DEATH, -2 TEAMKILL, 2 MELEE, order by points <br> <br> <b>Meter config</b> <br> No medicing, no health recharging, no armor, no dragging, respawn (8 seconds), RLV, no incap limit </span> </div> <br> <br> <div align=center class="white"> Version: 5 ALPHA <i>(11FEB2013)</i> <br> ©2013, <a href="http://www.d1mtg.net">D1&amp;MTG Defense Inc.</a> <br> <b>Disclaimer:</b> Second Life© and Linden Lab® are trademarks or registered trademarks of Linden Research, Inc. All rights reserved. No infringement is intended. </div> </body> </html>