3v4l.org

run code in 300+ PHP versions simultaneously
<?php function CheckReg($_con, $_vid) { $_sql = "SELECT * FROM application WHERE vid=$_vid AND (accepted=0 OR accepted=2 OR accepted=3)"; $_sth = mysqli_query($_con, $_sql); if (mysqli_fetch_array($_sth, MYSQLI_BOTH) == "") { return "0"; } else { return "1"; } } switch ($_GET["page"]) { // Sub Pages and main //******************************************************** // register as trainee //******************************************************** case "register": if (CheckReg($mysqli, $d->vid) == "1") { ?> <h3>Sorry, registration not avalaible, you have areally requested a registration (and still pending), or your subscription still in progress.</h3> <? include ("footer.php"); exit; }; if (!$_POST['register']) { $requestnum = $d->ratingatc + 1; $requestname = RequestRating($requestnum); ?> <h3 class="page-title">Register</h3> <div class="gcontainer"> <form action="index.php?page=register" method="post" name="register"> <fieldset><legend>Registration to the school</legend> <label>[INSERT THE RULE'S HERE]: </label><span>bla bla bla</span> <label>You request school for: </label><span><? echo $requestname; ?></span> <label>I agree with the rule's</label><span><input id="agree" type="checkbox" name="agree" value="agree"></span> </fieldset> <div class="color form-more"> <input name="register" class="submit" type="submit" value="Register"> </div> </form> </div> <? } else { if ($_POST["agree"] == "") { ?> <span>You don't have accepted the AUP! Please come back and fullfil the rule's</span> <? include ("footer.php"); exit; } else { // 0 - registered, 1 - refused, 2 - accepted, 3 - in progress, 4 - end, 5 - expelled $request = $d->ratingatc + 1; $sql = "INSERT INTO application (id, vid, request, accepted, reason, class) VALUES ('', '$d->vid', '$request', '0', '', '')"; safecommit($mysqli, $sql, "<h4>Failed to register your application, please contact WM, thank's</h4>", "<h4>Registration done. You're been contacted back on your email for future info.</h4>"); }; }; break; //******************************************************** // Default webpage //******************************************************** default: ?> <H4>Hi <? echo $d->firstname; ?> <? echo $d->lastname; ?> (<a href="https://www.ivao.aero/Member.aspx?Id=<? echo $d->vid; ?>"><? echo $d->vid; ?></a>)!<span class='notice'>Your rating ATC is <? echo RequestRating($d->ratingatc);?></span></H4> <span>Welcome to the school. You can request a subscription here.</span> <? break; // END switch }; ?>

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.01116.75
8.3.50.0100.01316.14
8.3.40.0110.01118.78
8.3.30.0070.01018.70
8.3.20.0070.00020.38
8.3.10.0080.00023.61
8.3.00.0040.00423.78
8.2.180.0070.01118.29
8.2.170.0070.01022.96
8.2.160.0100.00320.36
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0060.00319.69
8.2.120.0000.00726.35
8.2.110.0030.00622.11
8.2.100.0000.01217.80
8.2.90.0040.00418.92
8.2.80.0030.00618.04
8.2.70.0030.00717.50
8.2.60.0070.00017.80
8.2.50.0060.00318.07
8.2.40.0060.00322.34
8.2.30.0040.00419.21
8.2.20.0000.00717.53
8.2.10.0030.00517.90
8.2.00.0040.00417.80
8.1.280.0080.00825.92
8.1.270.0110.00422.15
8.1.260.0060.00328.09
8.1.250.0040.00428.09
8.1.240.0070.00323.85
8.1.230.0070.00419.09
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0100.00017.10
8.1.190.0080.00016.98
8.1.180.0030.00518.10
8.1.170.0000.00818.52
8.1.160.0000.00820.63
8.1.150.0070.00018.66
8.1.140.0080.00019.36
8.1.130.0050.00217.56
8.1.120.0000.00717.32
8.1.110.0000.00717.21
8.1.100.0070.00017.33
8.1.90.0000.01017.35
8.1.80.0000.00717.30
8.1.70.0030.00317.34
8.1.60.0040.00417.47
8.1.50.0050.00317.32
8.1.40.0030.00517.41
8.1.30.0040.00417.50
8.1.20.0040.00417.45
8.1.10.0050.00217.44
8.1.00.0040.00417.37
8.0.300.0050.00318.77
8.0.290.0070.00016.63
8.0.280.0070.00018.43
8.0.270.0000.00717.13
8.0.260.0070.00017.17
8.0.250.0030.00316.96
8.0.240.0000.00616.96
8.0.230.0000.00816.81
8.0.220.0000.00716.91
8.0.210.0070.00016.75
8.0.200.0000.00616.91
8.0.190.0000.01116.96
8.0.180.0040.00416.79
8.0.170.0050.00316.91
8.0.160.0000.00716.89
8.0.150.0000.00716.86
8.0.140.0040.00416.89
8.0.130.0060.00013.31
8.0.120.0050.00316.79
8.0.110.0040.00416.87
8.0.100.0040.00416.88
8.0.90.0040.00416.80
8.0.80.0120.00316.91
8.0.70.0050.00216.65
8.0.60.0030.00516.94
8.0.50.0070.00016.89
8.0.30.0080.01217.00
8.0.20.0130.00817.40
8.0.10.0040.00416.89
8.0.00.0100.01116.70
7.4.330.0020.00216.83
7.4.320.0040.00416.26
7.4.300.0040.00416.45
7.4.290.0030.00316.27
7.4.280.0030.00516.27
7.4.270.0060.00016.37
7.4.260.0000.00716.35
7.4.250.0000.00716.31
7.4.240.0040.00316.36
7.4.230.0030.00316.37
7.4.220.0110.01116.46
7.4.210.0130.00816.38
7.4.200.0050.00316.48
7.4.160.0060.01316.28
7.4.150.0100.00717.40
7.4.140.0120.00817.86
7.4.130.0150.00616.39
7.4.120.0100.00816.37
7.4.110.0140.00316.18
7.4.100.0120.00616.34
7.4.90.0090.00916.24
7.4.80.0090.00919.39
7.4.70.0070.01116.44
7.4.60.0060.01016.45
7.4.50.0100.00616.24
7.4.40.0060.01616.25
7.4.30.0060.01516.56
7.4.10.0070.01416.42
7.4.00.0040.01115.42
7.3.330.0030.00313.19
7.3.320.0040.00413.27
7.3.310.0070.00016.02
7.3.300.0000.00716.18
7.3.290.0090.00716.21
7.3.280.0080.00816.21
7.3.270.0100.00717.40
7.3.260.0170.00916.30
7.3.240.0090.00816.29
7.3.230.0100.00616.39
7.3.210.0070.01716.13
7.3.200.0100.00719.39
7.3.190.0090.00916.29
7.3.180.0110.01116.28
7.3.170.0100.00616.43
7.3.160.0060.00916.23
7.3.130.0120.00616.15
7.3.120.0070.01316.08
7.3.110.0070.00716.08
7.3.100.0060.01016.34
7.3.90.0090.00916.21
7.3.80.0030.00916.28
7.3.70.0110.00416.16
7.3.60.0100.00716.16
7.3.50.0060.00316.26
7.3.40.0070.00416.21
7.3.30.0060.00816.08
7.3.20.0160.00318.08
7.3.10.0040.01117.98
7.3.00.0000.01318.02
7.2.330.0170.00916.50
7.2.320.0060.01116.47
7.2.310.0100.00516.30
7.2.300.0060.01016.41
7.2.290.0140.00816.50
7.2.260.0100.01016.37
7.2.250.0120.00416.22
7.2.240.0040.01116.26
7.2.230.0030.01516.16
7.2.220.0030.01616.31
7.2.210.0040.01116.43
7.2.200.0060.00616.38
7.2.190.0040.00816.41
7.2.180.0040.00816.28
7.2.170.0030.01016.28
7.2.160.0030.01016.31
7.2.150.0000.01618.00
7.2.140.0090.00918.00
7.2.130.0060.00918.30
7.2.120.0070.00718.22
7.2.110.0000.01418.21
7.2.100.0030.00618.10
7.2.90.0090.00318.14
7.2.80.0090.00617.88
7.2.70.0030.01018.28
7.2.60.0080.00617.42
7.2.50.0100.00517.46
7.2.40.0040.01118.08
7.2.30.0040.01118.29
7.2.20.0030.00918.27
7.2.10.0070.01118.32
7.2.00.0140.00618.80
7.1.330.0140.00317.22
7.1.320.0070.01117.00
7.1.310.0100.00317.09
7.1.300.0060.00317.07
7.1.290.0030.01017.04
7.1.280.0090.00017.20
7.1.270.0040.01217.03
7.1.260.0090.00617.16
7.1.250.0080.00816.91
7.1.240.0060.01217.03
7.1.230.0070.01117.00
7.1.220.0060.00916.98
7.1.210.0140.00217.02
7.1.200.0040.01216.41
7.1.190.0090.00617.02
7.1.180.0100.00317.00
7.1.170.0090.00616.92
7.1.160.0070.01017.16
7.1.150.0050.00517.21
7.1.140.0100.00717.14
7.1.130.0060.00917.02
7.1.120.0090.00917.00
7.1.110.0070.01016.98
7.1.100.0070.00917.50
7.1.90.0070.01017.21
7.1.80.0090.00917.00
7.1.70.0050.00817.10
7.1.60.0070.00518.18
7.1.50.0080.00817.01
7.1.40.0000.01317.07
7.1.30.0110.00617.10
7.1.20.0040.01117.31
7.1.10.0150.00017.09
7.1.00.0080.04119.78
7.0.330.0040.01116.88
7.0.320.0070.01016.64
7.0.310.0040.00716.94
7.0.300.0100.00016.81
7.0.290.0060.00316.78
7.0.280.0040.01116.84
7.0.270.0000.01316.83
7.0.260.0090.00616.71
7.0.250.0040.01116.89
7.0.240.0100.00316.70
7.0.230.0070.00716.88
7.0.220.0120.00317.02
7.0.210.0090.00316.78
7.0.200.0050.00616.79
7.0.190.0090.00316.82
7.0.180.0070.00716.77
7.0.170.0030.00916.93
7.0.160.0070.00716.94
7.0.150.0070.00716.76
7.0.140.0030.00916.73
7.0.130.0070.00716.85
7.0.120.0030.01016.91
7.0.110.0080.00616.59
7.0.100.0030.00916.92
7.0.90.0000.01316.74
7.0.80.0030.01016.85
7.0.70.0090.00616.93
7.0.60.0080.04719.34
7.0.50.0120.02317.48
7.0.40.0080.02717.47
7.0.30.0080.02517.52
7.0.20.0170.03317.53
7.0.10.0080.02317.47
7.0.00.0080.04517.55
5.6.400.0100.01015.58
5.6.390.0090.00015.68
5.6.380.0070.01015.93
5.6.370.0110.00415.47
5.6.360.0040.01115.78
5.6.350.0070.00315.72
5.6.340.0100.00715.59
5.6.330.0000.01315.75
5.6.320.0060.00615.62
5.6.310.0070.01115.59
5.6.300.0070.01015.39
5.6.290.0060.00915.61
5.6.280.0020.03518.47
5.6.270.0070.00715.78
5.6.260.0060.00315.89
5.6.250.0070.00715.75
5.6.240.0090.00615.49
5.6.230.0030.01015.50
5.6.220.0060.00615.45
5.6.210.0030.04618.11
5.6.200.0020.04616.86
5.6.190.0050.04818.07
5.6.180.0260.03918.07
5.6.170.0180.02618.10
5.6.160.0050.04417.95
5.6.150.0090.03717.01
5.6.140.0030.02617.00
5.6.130.0070.03316.88
5.6.120.0050.04218.38
5.6.110.0100.04518.30
5.6.100.0050.02918.20
5.6.90.0100.03018.27
5.6.80.0060.04317.93
5.6.70.0030.01315.49
5.6.60.0090.00315.49
5.6.50.0030.01415.42
5.6.40.0030.00915.43
5.6.30.0030.00915.47
5.6.20.0000.01015.70
5.6.10.0090.00615.59
5.6.00.0000.01215.45
5.5.380.0060.00615.67
5.5.370.0070.00315.38
5.5.360.0030.00915.39
5.5.350.0120.03717.87
5.5.340.0120.03916.89
5.5.330.0070.04417.81
5.5.320.0170.04217.94
5.5.310.0230.02517.93
5.5.300.0030.02216.72
5.5.290.0050.02216.75
5.5.280.0030.04518.16
5.5.270.0030.02618.30
5.5.260.0110.03618.29
5.5.250.0130.04018.03
5.5.240.0070.04617.79
5.5.230.0030.01015.64
5.5.220.0070.01015.45
5.5.210.0080.00415.43
5.5.200.0090.00315.58
5.5.190.0040.01415.49
5.5.180.0060.01015.66
5.5.170.0030.00615.65
5.5.160.0040.00815.56
5.5.150.0060.00815.68
5.5.140.0040.01115.59
5.5.130.0070.00415.62
5.5.120.0000.01515.46
5.5.110.0040.00715.21
5.5.100.0100.00315.49
5.5.90.0030.01015.19
5.5.80.0070.00715.21
5.5.70.0040.01115.55
5.5.60.0070.00715.56
5.5.50.0000.01015.50
5.5.40.0070.00715.24
5.5.30.0070.01115.41
5.5.20.0080.00415.42
5.5.10.0100.00315.25
5.5.00.0000.01115.44

preferences:
45.52 ms | 401 KiB | 5 Q