3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* assuming: <form action='admin.php' name='value' method='POST'> <input type="radio" name="option" value="employee" checked> View Customers<br> <input type="radio" name="option" value="upload"> Upload File<br> <input type="radio" name="option" value="editUser"> Edit Access<br> <input type="submit" name="submit" value="Enter" class="button" /> </form> */ //just simulating $_POST['option'] = 'employee'; function redirect_to ($to){ echo $to; } //code: $redirectsAllowed = ['employee', 'upload', 'editUser']; if(isset($_POST['option']) && in_array($_POST['option'],$redirectsAllowed,true)){ redirect_to ($_POST['option'] . '.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.60.0180.00016.63
8.3.50.0140.00018.13
8.3.40.0070.00718.83
8.3.30.0100.00718.82
8.3.20.0030.00521.90
8.3.10.0070.00021.89
8.3.00.0040.00419.79
8.2.180.0130.00725.92
8.2.170.0120.00319.09
8.2.160.0000.01522.96
8.2.150.0050.00324.18
8.2.140.0060.00324.66
8.2.130.0070.00019.21
8.2.120.0070.01126.35
8.2.110.0060.00320.57
8.2.100.0090.00617.91
8.2.90.0030.00618.16
8.2.80.0030.00619.11
8.2.70.0080.00017.50
8.2.60.0000.00818.16
8.2.50.0050.00318.07
8.2.40.0000.00818.35
8.2.30.0050.00218.24
8.2.20.0040.00418.13
8.2.10.0030.00618.00
8.2.00.0040.00418.01
8.1.280.0090.00925.92
8.1.270.0070.00723.99
8.1.260.0020.00526.35
8.1.250.0040.00428.09
8.1.240.0030.00622.20
8.1.230.0080.00420.66
8.1.220.0040.00417.76
8.1.210.0040.00418.95
8.1.200.0070.00317.35
8.1.190.0000.00817.35
8.1.180.0050.00318.10
8.1.170.0000.00818.84
8.1.160.0000.00718.95
8.1.150.0040.00419.02
8.1.140.0000.00717.62
8.1.130.0000.00717.38
8.1.120.0030.00417.44
8.1.110.0100.00017.34
8.1.100.0030.00317.34
8.1.90.0000.00817.38
8.1.80.0060.00317.47
8.1.70.0040.00417.52
8.1.60.0030.00517.48
8.1.50.0000.00817.55
8.1.40.0000.00717.54
8.1.30.0050.00317.63
8.1.20.0000.00717.61
8.1.10.0040.00417.58
8.1.00.0020.00517.56
8.0.300.0050.00220.21
8.0.290.0000.00716.75
8.0.280.0000.00718.46
8.0.270.0030.00317.22
8.0.260.0000.00716.83
8.0.250.0030.00316.98
8.0.240.0030.00616.96
8.0.230.0070.00016.85
8.0.220.0070.00016.96
8.0.210.0000.00716.84
8.0.200.0060.00316.96
8.0.190.0070.00016.93
8.0.180.0000.00716.96
8.0.170.0060.00316.89
8.0.160.0030.00316.90
8.0.150.0040.00416.93
8.0.140.0030.00316.72
8.0.130.0050.00013.21
8.0.120.0070.00016.70
8.0.110.0060.00316.92
8.0.100.0080.00016.91
8.0.90.0000.00716.70
8.0.80.0060.00916.88
8.0.70.0000.00716.91
8.0.60.0070.00016.96
8.0.50.0030.00516.72
8.0.30.0110.00617.01
8.0.20.0100.01317.40
8.0.10.0070.00016.90
8.0.00.0120.00516.87
7.4.330.0030.00316.79
7.4.320.0050.00216.61
7.4.300.0060.00016.59
7.4.290.0040.00416.63
7.4.280.0050.00216.58
7.4.270.0070.00016.61
7.4.260.0000.00716.57
7.4.250.0030.00316.60
7.4.240.0070.00016.46
7.4.230.0030.00316.63
7.4.220.0000.00816.32
7.4.210.0090.00916.57
7.4.200.0020.00516.51
7.4.160.0050.01016.51
7.4.140.0110.00817.86
7.4.130.0130.00316.49
7.4.120.0100.00916.53
7.4.110.0070.01116.43
7.4.100.0090.00916.60
7.4.90.0140.00316.54
7.4.80.0170.00319.39
7.4.70.0090.00616.67
7.4.60.0090.00916.44
7.4.50.0030.01016.52
7.4.40.0040.01616.30
7.4.00.0070.00914.98
7.3.330.0000.00613.33
7.3.320.0030.00313.24
7.3.310.0030.00316.26
7.3.300.0040.00416.32
7.3.290.0000.00716.31
7.3.280.0080.00916.37
7.3.260.0160.01016.42
7.3.240.0110.01016.42
7.3.230.0160.00016.62
7.3.210.0090.00916.61
7.3.200.0060.00916.50
7.3.190.0050.01116.38
7.3.180.0100.00716.65
7.3.170.0110.01116.37
7.3.160.0060.01016.46
7.3.120.0150.00315.05
7.3.110.0100.00714.77
7.3.100.0040.00714.77
7.3.90.0030.00914.89
7.3.80.0070.00414.86
7.3.70.0030.00614.78
7.3.60.0040.01114.68
7.3.50.0060.00914.91
7.3.40.0040.00414.83
7.3.30.0090.00614.70
7.3.20.0060.00616.76
7.3.10.0040.00816.65
7.3.00.0060.00816.69
7.2.330.0030.01316.65
7.2.320.0030.01116.79
7.2.310.0060.01016.71
7.2.300.0080.00816.35
7.2.290.0120.00616.61
7.2.250.0120.00314.92
7.2.240.0060.01615.05
7.2.230.0070.00714.97
7.2.220.0030.00615.22
7.2.210.0040.00815.03
7.2.200.0130.00014.90
7.2.190.0100.00614.99
7.2.180.0140.00315.18
7.2.170.0000.01115.14
7.2.130.0030.01016.80
7.2.120.0110.00216.53
7.2.110.0100.00716.64
7.2.100.0090.00416.57
7.2.90.0040.00816.94
7.2.80.0060.00516.71
7.2.70.0050.00816.96
7.2.60.0060.00616.97
7.2.50.0090.00516.81
7.2.40.0460.00917.49
7.2.30.0250.01517.22
7.2.20.0290.00817.23
7.2.10.0320.01217.30
7.2.00.0360.00917.24
7.1.330.0040.01115.86
7.1.320.0070.00715.78
7.1.310.0030.00915.52
7.1.300.0060.00915.88
7.1.290.0060.00316.00
7.1.280.0080.00515.72
7.1.270.0000.01215.50
7.1.260.0000.00815.86
7.1.250.0100.00315.69
7.1.240.0050.00915.59
7.1.230.0070.00615.62
7.1.220.0090.00515.85
7.1.210.0060.00615.58
7.1.200.0060.00715.75
7.1.190.0090.00415.83
7.1.180.0040.00815.79
7.1.170.0060.00615.85
7.1.160.0310.00716.05
7.1.150.0370.00916.24
7.1.140.0310.00916.16
7.1.130.0300.00615.96
7.1.120.0400.00916.12
7.1.110.0410.00516.02
7.1.100.0350.00515.91
7.1.90.0340.00815.85
7.1.80.0540.00615.96
7.1.70.0330.00715.50
7.1.60.0560.00821.67
7.1.50.0490.01121.40
7.1.40.0410.00921.42
7.1.30.0350.01221.39
7.1.20.0410.00921.36
7.1.10.0330.00815.46
7.1.00.0310.01115.34
7.0.330.0060.00915.15
5.6.380.0070.00514.19

preferences:
59.06 ms | 400 KiB | 5 Q