3v4l.org

run code in 300+ PHP versions simultaneously
<?php // $Id: main.php,v 1.2 2015/09/13 07:23:44 IvoG Exp $ // The first page // HEADER //include ("header.php"); 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"] == "") { ?> <h3>Sorry, registration not avalaible, you don't have accepted the AUP. Return back and fullfill the rules, thank's</h3> <? include ("footer.php"); exit; } // 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> <? /* print_r(CheckUser($d->vid)); print_r(CheckUser($d->vid)); echo '<pre>'; print_r($d); echo '</pre>'; */ // var_dump($d); break; // END switch }; // FOOTER //include ("footer.php"); ?>

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.40.0120.00318.71
8.3.30.0180.00018.84
8.3.20.0080.00020.21
8.3.10.0080.00021.73
8.3.00.0040.00423.45
8.2.170.0150.00322.96
8.2.160.0030.01020.45
8.2.150.0030.00524.18
8.2.140.0060.00324.66
8.2.130.0040.00419.70
8.2.120.0000.00726.35
8.2.110.0090.00022.11
8.2.100.0040.00717.93
8.2.90.0090.00019.05
8.2.80.0000.00817.97
8.2.70.0050.00317.37
8.2.60.0000.00717.80
8.2.50.0060.00318.07
8.2.40.0080.00022.32
8.2.30.0000.00719.29
8.2.20.0070.00017.54
8.2.10.0000.00717.79
8.2.00.0040.00417.94
8.1.270.0110.00723.99
8.1.260.0070.00028.09
8.1.250.0050.00328.09
8.1.240.0030.00623.96
8.1.230.0040.00719.16
8.1.220.0050.00317.74
8.1.210.0000.00918.77
8.1.200.0050.00516.88
8.1.190.0000.00817.00
8.1.180.0030.00618.10
8.1.170.0000.00818.49
8.1.160.0050.00220.62
8.1.150.0000.00718.73
8.1.140.0040.00419.42
8.1.130.0000.00717.61
8.1.120.0070.00017.38
8.1.110.0050.00217.32
8.1.100.0000.00717.21
8.1.90.0030.00617.22
8.1.80.0070.00017.34
8.1.70.0040.00417.21
8.1.60.0040.00417.41
8.1.50.0040.00417.38
8.1.40.0020.00517.43
8.1.30.0000.00817.51
8.1.20.0030.00617.54
8.1.10.0000.00717.33
8.1.00.0070.00017.38
8.0.300.0040.00418.77
8.0.290.0000.01016.63
8.0.280.0070.00018.36
8.0.270.0070.00017.04
8.0.260.0060.00017.18
8.0.250.0060.00016.82
8.0.240.0070.00016.95
8.0.230.0000.00716.91
8.0.220.0070.00016.85
8.0.210.0040.00416.94
8.0.200.0030.00317.02
8.0.190.0080.00016.95
8.0.180.0040.00416.97
8.0.170.0030.00616.93
8.0.160.0030.00316.93
8.0.150.0030.00516.89
8.0.140.0000.00716.82
8.0.130.0030.00313.38
8.0.120.0040.00416.82
8.0.110.0030.00516.79
8.0.100.0070.00016.89
8.0.90.0040.00416.83
8.0.80.0070.01316.86
8.0.70.0040.00416.80
8.0.60.0000.00716.86
8.0.50.0040.00416.76
8.0.30.0100.00716.98
8.0.20.0120.00717.40
8.0.10.0000.00816.92
8.0.00.0110.01016.68
7.4.330.0000.00516.88
7.4.320.0060.00016.38
7.4.300.0030.00316.46
7.4.290.0000.00616.54
7.4.280.0030.00616.49
7.4.270.0040.00416.43
7.4.260.0060.00316.46
7.4.250.0030.00516.46
7.4.240.0000.00716.43
7.4.230.0000.00716.16
7.4.220.0100.00616.34
7.4.210.0030.01216.43
7.4.200.0030.00316.24
7.4.160.0090.00616.44
7.4.150.0060.01217.40
7.4.140.0130.00817.86
7.4.130.0110.00916.22
7.4.120.0090.00916.37
7.4.110.0060.01216.30
7.4.100.0040.02216.44
7.4.90.0100.00616.41
7.4.80.0160.00619.39
7.4.70.0100.01016.35
7.4.60.0030.01516.14
7.4.50.0050.00616.13
7.4.40.0040.01516.36
7.4.30.0120.00916.36
7.4.00.0070.01014.68
7.3.330.0020.00213.06
7.3.320.0030.00313.12
7.3.310.0000.00716.16
7.3.300.0040.00416.17
7.3.290.0000.00716.25
7.3.280.0060.01216.16
7.3.270.0070.01017.40
7.3.260.0080.00816.10
7.3.250.0140.00516.27
7.3.240.0140.00516.37
7.3.230.0130.00316.39
7.3.210.0120.00616.28
7.3.200.0110.00616.13
7.3.190.0100.00616.20
7.3.180.0100.00616.26
7.3.170.0070.01016.28
7.3.160.0100.00616.32
7.3.120.0120.00614.92
7.3.110.0120.00614.36
7.3.100.0040.01114.71
7.3.90.0030.01314.63
7.3.80.0060.00914.60
7.3.70.0060.01214.62
7.3.60.0070.00714.74
7.3.50.0040.00814.68
7.3.40.0060.00914.32
7.3.30.0060.01014.51
7.3.20.0070.00716.63
7.3.10.0120.00616.42
7.3.00.0110.00716.30
7.2.330.0080.00916.55
7.2.320.0140.00316.20
7.2.310.0090.00616.46
7.2.300.0110.01116.22
7.2.290.0080.00816.50
7.2.240.0100.01015.04
7.2.230.0120.00315.00
7.2.220.0120.00614.64
7.2.210.0030.01014.67
7.2.200.0030.00714.93
7.2.190.0120.00314.86
7.2.180.0070.00714.67
7.2.170.0140.00314.38
7.2.160.0070.01114.66
7.2.150.0030.01316.95
7.2.140.0060.00916.54
7.2.130.0070.01116.51
7.2.120.0090.00816.54
7.2.110.0080.00916.51
7.2.100.0120.00516.40
7.2.90.0080.00916.66
7.2.80.0170.00516.84
7.2.70.0100.00816.66
7.2.60.0060.00916.53
7.2.50.0120.00416.57
7.2.40.0070.01016.57
7.2.30.0080.01116.57
7.2.20.0090.00616.40
7.2.10.0060.01016.43
7.2.00.0100.00717.52
7.1.330.0090.00915.70
7.1.320.0070.01015.39
7.1.310.0040.00815.47
7.1.300.0070.00715.29
7.1.290.0070.01015.52
7.1.280.0000.01515.47
7.1.270.0090.00615.55
7.1.260.0070.01015.74
7.1.250.0090.00815.37
7.1.200.0050.00515.66
7.1.100.0100.00718.36
7.1.70.0030.00517.32
7.1.60.0130.01319.27
7.1.50.0090.00316.92
7.1.00.0030.07322.57
7.0.200.0000.00916.52
7.0.60.0170.06721.73
7.0.50.0030.06017.89
7.0.40.0100.06720.20
7.0.30.0470.07020.18
7.0.20.0270.05020.00
7.0.10.0070.04320.19
7.0.00.0030.06020.12
5.6.280.0000.03321.13
5.6.210.0130.07020.73
5.6.200.0000.06018.21
5.6.190.0170.07720.77
5.6.180.0400.04320.67
5.6.170.0330.05720.40
5.6.160.0000.05320.43
5.6.150.0000.04718.04
5.6.140.0030.04018.13
5.6.130.0030.09018.15
5.6.120.0070.03720.99
5.6.110.0100.07021.00
5.6.100.0030.07721.11
5.6.90.0070.06320.98
5.6.80.0100.07720.45
5.5.350.0030.08020.53
5.5.340.0030.05017.99
5.5.330.0200.04720.34
5.5.320.0300.07720.20
5.5.310.0270.07020.30
5.5.300.0130.06717.92
5.5.290.0070.05017.95
5.5.280.0030.05020.67
5.5.270.0200.07020.87
5.5.260.0130.07720.68
5.5.250.0130.08020.55
5.5.240.0130.07720.19

preferences:
46.57 ms | 400 KiB | 5 Q