3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* Copyright(c) 2012, Eckhardt Optics Authors: Evan Oman, John Eckhardt This is part of Bugzilla Kanban Board. Bugzilla Kanban Board is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License (GNU GPL) as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. The code is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU GPL for more details. As additional permission under GNU GPL version 3 section 7, you may distribute non-source (e.g., minimized or compacted) forms of that code without the copy of the GNU GPL normally required by section 4, provided you include this license notice and a URL through which recipients can access the Corresponding Source. */ session_start(); if (isset($_SESSION["login"]) && isset($_SESSION["password"])) { die(header("location: index.php")); } session_write_close(); ?> <!DOCTYPE html> <html> <head> <title>Log in</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <link type="text/css" href="themes/black-tie/jquery-ui.css" rel="stylesheet" /> <script type="text/javascript" src="js/jquery-1.7.2.js"></script> <script type="text/javascript" src="js/jquery.ui.core.js"></script> <script type="text/javascript" src="js/jquery.ui.widget.js"></script> <script type="text/javascript" src="js/jquery.ui.dialog.js"></script> <script type="text/javascript" src="js/jquery.ui.mouse.js"></script> <script type="text/javascript" src="js/jquery.ui.draggable.js"></script> <script type="text/javascript" src="js/jquery.ui.resizable.js"></script> <script type="text/javascript" src="js/jquery.ui.position.js"></script> <script type="text/javascript" src="js/jquery.ui.button.js"></script> <link type="text/css" href="css/index.css" rel="stylesheet" /> <style type="text/css"> #dialogLogin{ width: auto; } body{ width: 100%; height: 100%; } #loginForm input[type='text'], #loginForm input[type='password'] { width: 100%; } </style> <script type="text/javascript"> var userID; $(document).ready(function(){ //Creates the options dialog $( "#dialogLogin" ).dialog({ autoOpen: true, resizable: false, height: "auto", width: 400, position: ['center','top'] , show: { effect: 'blind' }, modal: true, closeOnEscape: false, open: function(event, ui) { $(".ui-dialog-titlebar-close").hide(); } }); //Sets the product tool tip $("#product").attr("title", "Enter the name of the product you want to work on exactly as it appears in Bugzilla.\n(If you leave this blank or you mistype you can reset it once the board has been loaded)") $("#btnSubmit").button(); $("#loginForm").submit(function(e){ $( "#dialogLogin" ).dialog("close"); $("body").addClass("loading"); e.preventDefault(); //An attempt to counter mousedown issue(see bug #128) //$("#btnSubmit").click(); var login = $("#login").val(); var password = $("#password").val(); var product = $("#product").val(); $.ajax({ url: "ajax_login.php", type: "POST", dataType: "json", data: { "login": login, "password": password, "product": product }, success: function(data, status){ if (data.result.faultString != null) { alert(data.result.faultString+'\nError Code: '+data.result.faultCode); $("body").removeClass("loading"); $( "#dialogLogin" ).dialog("open"); } else if (!data.result) { alert("Something is wrong"); $("body").removeClass("loading"); $( "#dialogLogin" ).dialog("open"); } else { document.location.href = "index.php"; } }, error: function(jqXHR, textStatus, errorThrown){ alert("There was an error:" + textStatus); } }) }); }); </script> </head> <body> <div id="dialogLogin" class="ui-dialog-content ui-widget-content" title="Login" > <form id="loginForm"> <fieldset> <div> <div > <label for="login">User Name</label> <input type="text" name="login" id="login" class="text ui-widget-content ui-corner-all"/> </div> <div > <label for="password">Password</label> <input type="password" name="password" id="password" class="text ui-widget-content ui-corner-all" /> </div> <div> <label for="product">Product Name</label> <input name="product" id="product" class="text ui-widget-content ui-corner-all" type="text"/> </div> <input type="submit" id="btnSubmit"value="Login" style="float: right;"/> </div> </fieldset> </form> </div> <div class="modal"><div class="loadingLabel">Logging In</div></div> </body> </html>

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0070.01418.31
8.3.50.0100.01021.14
8.3.40.0190.00318.77
8.3.30.0110.00420.39
8.3.20.0050.00320.35
8.3.10.0040.00421.09
8.3.00.0040.00423.54
8.2.180.0090.00916.88
8.2.170.0140.00722.96
8.2.160.0100.00320.52
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0000.00826.16
8.2.120.0080.00021.06
8.2.110.0090.00019.37
8.2.100.0090.00317.91
8.2.90.0080.00017.75
8.2.80.0080.00018.72
8.2.70.0040.00419.24
8.2.60.0080.00017.63
8.2.50.0040.00417.63
8.2.40.0030.00619.47
8.2.30.0080.00017.77
8.2.20.0000.00817.76
8.2.10.0050.00317.78
8.2.00.0070.00017.66
8.1.280.0110.00425.92
8.1.270.0040.00423.99
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0070.00322.14
8.1.230.0000.01117.83
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.00817.23
8.1.190.0050.00317.23
8.1.180.0030.00618.10
8.1.170.0040.00417.63
8.1.160.0000.00718.91
8.1.150.0000.00818.53
8.1.140.0070.00017.46
8.1.130.0080.00017.87
8.1.120.0000.00717.54
8.1.110.0070.00017.52
8.1.100.0040.00417.26
8.1.90.0040.00417.33
8.1.80.0030.00517.48
8.1.70.0000.00717.39
8.1.60.0000.01017.54
8.1.50.0000.00717.50
8.1.40.0000.00817.49
8.1.30.0030.00617.49
8.1.20.0040.00417.54
8.1.10.0000.00817.46
8.1.00.0050.00217.38
8.0.300.0040.00818.77
8.0.290.0060.00316.88
8.0.280.0000.00817.90
8.0.270.0000.00817.98
8.0.260.0000.00716.86
8.0.250.0070.00016.87
8.0.240.0070.00016.84
8.0.230.0040.00416.96
8.0.220.0350.00316.89
8.0.210.0070.00016.74
8.0.200.0040.00416.84
8.0.190.0000.00816.94
8.0.180.0000.00816.89
8.0.170.0040.00416.91
8.0.160.0030.00516.83
8.0.150.0000.00816.80
8.0.140.0070.00416.82
8.0.130.0050.00013.23
8.0.120.0040.00416.74
8.0.110.0000.00716.88
8.0.100.0000.00716.91
8.0.90.0000.00816.91
8.0.80.0030.01316.84
8.0.70.0040.00416.76
8.0.60.0040.00416.91
8.0.50.0040.00416.93
8.0.30.0090.01116.91
8.0.20.0140.01317.40
8.0.10.0000.00817.01
8.0.00.0090.01116.90
7.4.330.0000.00515.07
7.4.320.0000.00616.62
7.4.300.0000.00616.49
7.4.290.0040.00216.49
7.4.280.0000.00616.57
7.4.270.0070.00016.58
7.4.260.0000.00513.23
7.4.250.0030.00616.49
7.4.240.0030.00316.59
7.4.230.0000.00716.32
7.4.220.0060.01216.44
7.4.210.0060.01016.60
7.4.200.0020.00516.53
7.4.190.0070.00016.71
7.4.160.0080.00816.43
7.4.150.0120.00617.40
7.4.140.0090.00917.86
7.4.130.0100.01216.53
7.4.120.0060.01216.46
7.4.110.0100.00716.56
7.4.100.0120.00916.33
7.4.90.0090.00916.59
7.4.80.0120.00419.39
7.4.70.0100.00716.43
7.4.60.0060.01216.41
7.4.50.0000.00816.43
7.4.40.0070.01022.77
7.4.30.0120.00616.47
7.4.00.0050.01314.99
7.3.330.0030.00313.07
7.3.320.0050.00013.05
7.3.310.0030.00316.16
7.3.300.0000.00716.28
7.3.290.0050.00816.28
7.3.280.0060.01116.26
7.3.270.0170.00017.40
7.3.260.0090.00918.24
7.3.250.0080.01016.26
7.3.240.0030.01316.29
7.3.230.0070.01016.39
7.3.210.0130.00316.23
7.3.200.0110.01119.39
7.3.190.0030.01416.55
7.3.180.0030.01616.33
7.3.170.0030.01316.45
7.3.160.0110.00516.29
7.3.120.0080.00814.88
7.3.110.0070.01014.72
7.3.100.0000.01614.80
7.3.90.0030.01014.70
7.3.80.0070.00714.78
7.3.70.0100.00014.75
7.3.60.0070.00414.57
7.3.50.0030.00914.94
7.3.40.0070.00414.45
7.3.30.0160.00014.66
7.3.20.0080.00416.75
7.3.10.0040.01216.64
7.3.00.0090.00316.77
7.2.330.0100.00716.68
7.2.320.0090.00916.54
7.2.310.0100.01316.61
7.2.300.0060.01616.52
7.2.290.0030.01316.44
7.2.250.0000.01814.81
7.2.240.0070.01314.91
7.2.230.0070.01014.67
7.2.220.0090.00915.10
7.2.210.0030.00915.04
7.2.200.0000.01715.20
7.2.190.0070.01014.99
7.2.180.0040.00814.81
7.2.170.0000.01714.86
7.2.00.0030.01019.49
7.1.330.0030.00915.46
7.1.320.0060.00615.62
7.1.310.0030.00715.68
7.1.300.0060.01015.63
7.1.290.0000.01115.75
7.1.280.0000.01315.93
7.1.270.0040.01215.73
7.1.260.0030.01015.69
7.1.100.0070.00718.02
7.1.70.0000.00717.05
7.1.60.0130.01319.17
7.1.50.0230.01634.67
7.1.00.0000.07022.26
7.0.200.0030.00716.40
7.0.140.0000.07722.10
7.0.100.0070.04020.16
7.0.90.0070.07020.00
7.0.80.0030.04320.02
7.0.70.0000.04319.93
7.0.60.0000.04319.86
7.0.50.0030.04320.13
7.0.40.0070.05720.15
7.0.30.0100.07720.11
7.0.20.0100.06720.08
7.0.10.0030.04720.10
7.0.00.0000.04719.98
5.6.280.0030.07321.00
5.6.250.0100.05720.57
5.6.240.0200.06320.58
5.6.230.0030.04320.69
5.6.220.0030.04020.50
5.6.210.0030.04020.61
5.6.200.0000.04721.09
5.6.190.0070.05721.03
5.6.180.0030.08021.03
5.6.170.0070.04021.18
5.6.160.0130.03721.04
5.6.150.0100.03321.11
5.6.140.0070.05021.04
5.6.130.0000.06021.05
5.6.120.0030.04720.97
5.6.110.0030.04020.95
5.6.100.0130.08021.02
5.6.90.0030.04020.93
5.6.80.0070.03320.41
5.6.70.0070.03720.49
5.6.60.0030.04020.48
5.6.50.0000.04320.41
5.6.40.0030.04320.44
5.6.30.0070.03720.43
5.6.20.0070.03720.44
5.6.10.0000.04320.38
5.6.00.0070.03720.37
5.5.380.0000.09320.56
5.5.370.0030.04320.36
5.5.360.0100.03720.39
5.5.350.0070.04720.44
5.5.340.0000.04320.79
5.5.330.0000.06720.65
5.5.320.0000.06720.74
5.5.310.0000.06320.80
5.5.300.0000.04320.64
5.5.290.0130.03020.92
5.5.280.0000.04720.93
5.5.270.0030.07020.92
5.5.260.0030.04020.89
5.5.250.0030.04020.71
5.5.240.0070.04020.31
5.5.230.0070.03720.30
5.5.220.0100.05320.30
5.5.210.0030.04020.17
5.5.200.0030.04019.98
5.5.190.0000.04320.13
5.5.180.0000.04320.24
5.5.160.0000.04320.29
5.5.150.0100.03320.21
5.5.140.0100.03719.99
5.5.130.0030.08020.15
5.5.120.0030.07720.23
5.5.110.0070.08020.21
5.5.100.0070.08020.11
5.5.90.0130.07020.17
5.5.80.0100.06020.17
5.5.70.0030.08720.07
5.5.60.0130.07020.07
5.5.50.0030.06020.16
5.5.40.0130.07320.05
5.5.30.0000.08320.15
5.5.20.0070.04320.07
5.5.10.0070.07319.98
5.5.00.0070.05320.13
5.4.450.0070.06019.46
5.4.440.0070.04719.46
5.4.430.0100.03719.30
5.4.420.0000.04319.55
5.4.410.0030.05019.24
5.4.400.0100.03719.12
5.4.390.0000.05319.23
5.4.380.0070.05319.11
5.4.370.0030.04019.09
5.4.360.0030.04019.09
5.4.350.0130.05019.14
5.4.340.0070.04019.02
5.4.320.0000.04019.14
5.4.310.0070.03318.81
5.4.300.0030.06319.05
5.4.290.0030.03719.11
5.4.280.0130.07019.12
5.4.270.0070.07019.09
5.4.260.0070.08018.98
5.4.250.0100.07019.11
5.4.240.0070.07319.06
5.4.230.0130.04018.89
5.4.220.0170.06719.22
5.4.210.0030.05318.83
5.4.200.0130.07318.89
5.4.190.0130.07319.22
5.4.180.0070.08019.06
5.4.170.0070.08019.07
5.4.160.0030.06018.94
5.4.150.0170.07019.09
5.4.140.0130.06716.13
5.4.130.0070.06716.38
5.4.120.0030.08016.32
5.4.110.0070.05316.33
5.4.100.0100.07716.33
5.4.90.0030.04316.21
5.4.80.0100.06716.24
5.4.70.0070.07316.41
5.4.60.0100.07016.34
5.4.50.0100.06716.27
5.4.40.0130.06716.39
5.4.30.0070.07016.34
5.4.20.0070.06716.38
5.4.10.0070.07316.23
5.4.00.0030.06715.79
5.3.290.0070.03714.63
5.3.280.0030.04714.47
5.3.270.0070.08314.60
5.3.260.0070.06314.58
5.3.250.0270.05014.44
5.3.240.0100.07714.51
5.3.230.0170.06714.56
5.3.220.0100.07314.55
5.3.210.0030.08014.55
5.3.200.0170.06014.50
5.3.190.0130.05714.50
5.3.180.0030.04714.52
5.3.170.0000.08314.39
5.3.160.0030.07014.55
5.3.150.0000.08714.54
5.3.140.0070.07314.54
5.3.130.0030.04714.50
5.3.120.0070.07714.54
5.3.110.0070.07714.38
5.3.100.0000.04013.89
5.3.90.0070.07014.01
5.3.80.0130.06313.98
5.3.70.0030.07014.00
5.3.60.0070.07313.98
5.3.50.0000.07313.92
5.3.40.0130.05013.95
5.3.30.0130.06713.77
5.3.20.0070.03313.64
5.3.10.0070.07313.63
5.3.00.0030.07313.59
5.2.170.0030.06312.65
5.2.160.0030.06312.65
5.2.150.0030.06712.65
5.2.140.0000.06712.65
5.2.130.0030.05712.65
5.2.120.0030.06012.65
5.2.110.0030.04012.65
5.2.100.0000.04012.65
5.2.90.0000.06312.65
5.2.80.0030.06312.65
5.2.70.0030.06712.65
5.2.60.0070.06012.65
5.2.50.0100.05012.65
5.2.40.0070.05012.65
5.2.30.0070.05712.65
5.2.20.0030.06312.65
5.2.10.0030.04712.65
5.2.00.0170.02312.65
5.1.60.0070.05012.65
5.1.50.0100.04712.65
5.1.40.0070.05012.65
5.1.30.0100.04712.65
5.1.20.0000.05712.65
5.1.10.0030.05712.65
5.1.00.0030.05712.65
5.0.50.0130.03712.65
5.0.40.0030.04712.65
5.0.30.0070.05712.65
5.0.20.0070.04012.65
5.0.10.0030.04712.65
5.0.00.0030.06712.65
4.4.90.0070.03012.65
4.4.80.0030.03712.65
4.4.70.0130.02712.65
4.4.60.0000.03712.65
4.4.50.0030.02712.65
4.4.40.0030.04012.65
4.4.30.0000.03712.65
4.4.20.0000.02312.65
4.4.10.0070.02712.65
4.4.00.0000.05012.65
4.3.110.0030.03312.65
4.3.100.0070.03012.65
4.3.90.0030.03312.65
4.3.80.0000.04712.65
4.3.70.0070.03012.65
4.3.60.0030.03312.65
4.3.50.0030.03012.65
4.3.40.0030.05012.65
4.3.30.0030.02712.65
4.3.20.0000.04012.65
4.3.10.0000.03012.65
4.3.00.0000.03712.65

preferences:
42.84 ms | 401 KiB | 5 Q