3v4l.org

run code in 300+ PHP versions simultaneously
<?php $error = array(); $allowedExts = array("jpg", "jpeg", "gif", "png"); if (!in_array($_FILES["newsthumb"]['type'], $allowedExts) || !in_array($_FILES["newsmain"]['type'], $allowedExts)) { $error[] = "One/Both of the files are too large.<br>"; }

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.0100.01018.56
8.3.50.0150.00722.11
8.3.40.0070.00718.75
8.3.30.0110.00418.89
8.3.20.0030.00518.90
8.3.10.0040.00421.09
8.3.00.0040.00421.73
8.2.180.0140.00316.75
8.2.170.0170.00022.96
8.2.160.0070.01320.35
8.2.150.0090.00024.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0000.00819.79
8.2.110.0110.00020.47
8.2.100.0080.00417.97
8.2.90.0000.00819.17
8.2.80.0030.00617.97
8.2.70.0040.00417.75
8.2.60.0030.00617.93
8.2.50.0050.00318.07
8.2.40.0050.00318.28
8.2.30.0000.00721.13
8.2.20.0070.00017.66
8.2.10.0040.00417.70
8.2.00.0040.00417.73
8.1.280.0120.00925.92
8.1.270.0070.00023.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0070.00322.54
8.1.230.0080.00321.10
8.1.220.0040.00418.77
8.1.210.0040.00419.03
8.1.200.0060.00317.23
8.1.190.0050.00317.52
8.1.180.0030.00518.10
8.1.170.0060.00318.50
8.1.160.0000.00718.80
8.1.150.0080.00018.60
8.1.140.0070.00017.33
8.1.130.0030.00317.93
8.1.120.0000.00717.36
8.1.110.0040.00417.44
8.1.100.0040.00417.45
8.1.90.0000.00717.46
8.1.80.0000.00717.43
8.1.70.0070.00017.41
8.1.60.0030.00617.65
8.1.50.0050.00217.36
8.1.40.0000.01117.45
8.1.30.0020.00517.70
8.1.20.0050.00317.59
8.1.10.0040.00417.56
8.1.00.0000.00817.54
8.0.300.0040.00419.89
8.0.290.0040.00417.05
8.0.280.0030.00318.40
8.0.270.0070.00017.13
8.0.260.0000.00716.79
8.0.250.0080.00017.05
8.0.240.0070.00317.02
8.0.230.0040.00416.91
8.0.220.0070.00317.00
8.0.210.0030.00316.84
8.0.200.0030.00516.97
8.0.190.0050.00217.06
8.0.180.0040.00416.96
8.0.170.0030.00617.00
8.0.160.0040.00416.88
8.0.150.0000.01116.89
8.0.140.0040.00816.82
8.0.130.0050.00013.37
8.0.120.0040.00316.80
8.0.110.0080.00016.89
8.0.100.0070.00017.06
8.0.90.0030.00316.85
8.0.80.0000.01517.02
8.0.70.0040.00417.02
8.0.60.0000.00716.81
8.0.50.0040.00416.73
8.0.30.0080.01117.08
8.0.20.0100.00817.40
8.0.10.0000.00717.11
8.0.00.0100.01016.76
7.4.330.0000.00514.66
7.4.320.0060.00016.59
7.4.300.0030.00316.65
7.4.290.0040.00416.65
7.4.280.0070.00016.63
7.4.270.0000.00716.41
7.4.260.0060.00013.25
7.4.250.0040.00416.50
7.4.240.0030.00316.64
7.4.230.0030.00316.39
7.4.220.0070.02116.59
7.4.210.0080.00816.55
7.4.200.0030.00316.61
7.4.190.0000.00716.60
7.4.160.0040.01216.55
7.4.150.0170.00317.40
7.4.140.0120.00517.86
7.4.130.0120.00616.55
7.4.120.0090.01016.38
7.4.110.0120.00616.58
7.4.100.0090.00916.59
7.4.90.0120.00616.52
7.4.80.0030.01319.39
7.4.70.0040.01116.69
7.4.60.0090.00916.53
7.4.50.0000.00816.11
7.4.40.0060.00922.52
7.4.30.0110.00516.66
7.4.00.0000.01315.13
7.3.330.0000.00513.31
7.3.320.0050.00013.27
7.3.310.0000.00716.20
7.3.300.0070.00016.38
7.3.290.0100.01216.32
7.3.280.0120.00616.33
7.3.270.0150.00317.40
7.3.260.0130.01018.24
7.3.250.0100.00716.38
7.3.240.0130.01016.44
7.3.230.0060.01216.39
7.3.210.0110.00616.29
7.3.200.0070.01319.39
7.3.190.0070.01416.37
7.3.180.0090.00916.54
7.3.170.0160.00416.43
7.3.160.0130.01016.52
7.3.120.0000.01414.84
7.2.330.0090.00916.52
7.2.320.0060.01216.44
7.2.310.0170.00016.64
7.2.300.0120.00316.53
7.2.290.0090.01516.58
7.2.00.0030.01319.46
7.1.100.0070.00417.69
7.1.70.0050.00516.87
7.1.60.0070.01819.40
7.1.50.0000.02416.84
7.1.00.0070.07322.48
7.0.200.0000.00716.87
7.0.140.0000.07722.09
7.0.70.0000.05321.66
7.0.60.0030.08021.58
7.0.50.0200.06722.14
7.0.40.0100.04720.14
7.0.30.0100.07020.11
7.0.20.0030.09020.18
7.0.10.0070.08720.14
7.0.00.0030.08720.07
5.6.280.0000.07721.11
5.6.220.0030.04720.58
5.6.210.0030.05020.62
5.6.200.0030.08720.95
5.6.190.0070.08321.10
5.6.180.0170.06721.08
5.6.170.0100.08321.04
5.6.160.0030.06321.13
5.6.150.0000.06321.13
5.6.140.0030.06021.07
5.6.130.0070.06721.10
5.6.120.0070.08721.02
5.6.110.0030.08021.07
5.6.100.0100.04320.98
5.6.90.0130.07020.99
5.6.80.0130.07320.49
5.6.70.0030.07020.47
5.6.60.0070.04720.38
5.6.50.0100.07720.55
5.6.40.0130.06720.53
5.6.30.0000.08320.46
5.6.20.0030.08020.51
5.6.10.0100.07320.36
5.6.00.0100.07720.34
5.5.360.0070.08720.40
5.5.350.0070.08320.44
5.5.340.0030.06720.83
5.5.330.0030.06020.79
5.5.320.0000.05320.86
5.5.310.0100.08320.63
5.5.300.0170.06720.89
5.5.290.0000.08720.86
5.5.280.0100.08020.77
5.5.270.0030.08720.77
5.5.260.0130.08020.87
5.5.250.0070.07320.69
5.5.240.0100.07020.24
5.5.230.0000.06320.18
5.5.220.0000.04720.29
5.5.210.0070.07720.08
5.5.200.0030.08020.11
5.5.190.0070.06320.22
5.5.180.0030.05720.15
5.5.160.0030.07320.12
5.5.150.0070.08020.14
5.5.140.0100.08020.13
5.5.130.0130.07320.12
5.5.120.0030.06020.11
5.5.110.0070.07320.26
5.5.100.0000.08320.01
5.5.90.0000.08320.09
5.5.80.0130.07019.96
5.5.70.0030.07720.14
5.5.60.0130.07020.05
5.5.50.0100.07720.00
5.5.40.0030.07720.10
5.5.30.0000.05720.06
5.5.20.0130.06720.04
5.5.10.0100.07020.08
5.5.00.0130.06320.05
5.4.450.0030.08319.26
5.4.440.0030.04319.30
5.4.430.0030.06319.24
5.4.420.0000.05719.38
5.4.410.0030.07319.17
5.4.400.0070.06018.98
5.4.390.0030.05718.96
5.4.380.0000.08019.13
5.4.370.0100.06318.97
5.4.360.0000.04719.05
5.4.350.0030.08019.09
5.4.340.0030.08018.95
5.4.320.0100.07319.14
5.4.310.0070.06719.03
5.4.300.0070.07018.96
5.4.290.0030.08019.02
5.4.280.0100.06718.97
5.4.270.0000.08319.03
5.4.260.0070.07318.80
5.4.250.0130.06718.78
5.4.240.0030.07718.94
5.4.230.0100.07018.82
5.4.220.0000.08019.06
5.4.210.0100.06719.14
5.4.200.0000.08018.90
5.4.190.0000.08318.95
5.4.180.0070.07318.77
5.4.170.0070.07319.03
5.4.160.0070.07719.09
5.4.150.0070.07718.96
5.4.140.0100.05016.30
5.4.130.0030.07716.28
5.4.120.0000.08016.28
5.4.110.0070.06016.21
5.4.100.0030.07016.23
5.4.90.0030.07316.32
5.4.80.0100.07016.20
5.4.70.0070.07016.33
5.4.60.0000.05316.23
5.4.50.0000.05316.39
5.4.40.0000.07016.36
5.4.30.0030.05316.27
5.4.20.0070.07016.40
5.4.10.0000.06716.37
5.4.00.0000.07315.72
5.3.290.0000.08314.67
5.3.280.0070.04314.55
5.3.270.0030.06714.56
5.3.260.0000.07714.44
5.3.250.0070.07014.46
5.3.240.0030.06714.55
5.3.230.0030.06014.53
5.3.220.0000.07714.50
5.3.210.0030.06714.42
5.3.200.0000.08014.55
5.3.190.0070.07014.52
5.3.180.0030.07714.52
5.3.170.0130.06314.56
5.3.160.0070.07014.55
5.3.150.0000.06014.47
5.3.140.0100.04714.43
5.3.130.0030.07714.40
5.3.120.0070.07314.41
5.3.110.0070.07714.38
5.3.100.0070.07314.01
5.3.90.0070.05013.85
5.3.80.0070.07313.98
5.3.70.0130.06013.95
5.3.60.0030.08013.86
5.3.50.0030.07013.95
5.3.40.0030.06013.94
5.3.30.0070.05713.90
5.3.20.0030.07313.63
5.3.10.0030.04013.51
5.3.00.0070.05313.63
5.2.170.0000.06712.20
5.2.160.0030.06012.20
5.2.150.0030.04012.20
5.2.140.0030.06312.20
5.2.130.0030.06012.20
5.2.120.0070.05312.20
5.2.110.0000.04012.20
5.2.100.0000.06312.20
5.2.90.0000.06312.20
5.2.80.0000.05712.20
5.2.70.0030.05012.20
5.2.60.0030.04712.20
5.2.50.0000.06712.20
5.2.40.0030.06012.20
5.2.30.0000.06712.20
5.2.20.0030.06012.20
5.2.10.0000.05712.20
5.2.00.0030.06012.20
5.1.60.0100.04712.20
5.1.50.0030.04712.20
5.1.40.0000.03712.20
5.1.30.0030.05012.20
5.1.20.0070.05012.20
5.1.10.0030.05312.20
5.1.00.0030.05012.20
5.0.50.0030.03712.20
5.0.40.0030.04012.20
5.0.30.0000.06712.20
5.0.20.0000.04712.20
5.0.10.0000.04312.20
5.0.00.0000.06712.20
4.4.90.0000.03712.20
4.4.80.0000.02012.20
4.4.70.0000.03712.20
4.4.60.0000.03012.20
4.4.50.0000.03712.20
4.4.40.0000.05312.20
4.4.30.0000.02312.20
4.4.20.0030.03312.20
4.4.10.0000.03712.20
4.4.00.0070.03312.20
4.3.110.0000.03312.20
4.3.100.0000.03312.20
4.3.90.0000.03712.20
4.3.80.0000.05012.20
4.3.70.0000.02712.20
4.3.60.0030.03012.20
4.3.50.0000.03012.20
4.3.40.0000.03312.20
4.3.30.0000.03712.20
4.3.20.0000.03712.20
4.3.10.0030.03312.20
4.3.00.0000.03712.20

preferences:
43.03 ms | 401 KiB | 5 Q