3v4l.org

run code in 300+ PHP versions simultaneously
<?php $uploaded_array = array("image/jpeg", "image/jpeg", "image/gif", "image/png", "text/html"); $allowed_array = array("image/jpeg", "image/gif", "image/png","text/php"); $s = array_intersect($uploaded_array,$allowed_array); print_r($s);

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.5.00.0150.00621.59
8.4.150.0020.00014.05
8.4.140.0090.01217.44
8.4.130.0100.00917.93
8.4.120.0120.00820.59
8.4.110.0030.00618.77
8.4.100.0100.01117.47
8.4.90.0120.00817.67
8.4.80.0080.00817.51
8.4.70.0110.00717.77
8.4.60.0120.00818.94
8.4.50.0110.00918.52
8.4.40.0170.00719.51
8.4.30.0030.00622.21
8.4.20.0100.01017.48
8.4.10.0090.00020.33
8.3.280.0040.00718.22
8.3.270.0090.01016.58
8.3.260.0090.01116.67
8.3.250.0110.00818.85
8.3.240.0100.00916.34
8.3.230.0110.00816.41
8.3.220.0090.01016.80
8.3.210.0080.00616.63
8.3.200.0120.00816.44
8.3.190.0070.01119.02
8.3.180.0100.00916.27
8.3.170.0060.01220.41
8.3.160.0110.00817.26
8.3.150.0130.00717.07
8.3.140.0080.00016.98
8.3.130.0070.00718.34
8.3.120.0160.00318.95
8.3.110.0030.01020.94
8.3.100.0060.00324.06
8.3.90.0080.00026.77
8.3.80.0060.00316.38
8.3.70.0070.00716.63
8.3.60.0140.00718.30
8.3.50.0100.00323.63
8.3.40.0120.00618.59
8.3.30.0090.00918.42
8.3.20.0060.00320.48
8.3.10.0040.00420.06
8.3.00.0060.00318.55
8.2.290.0110.00820.26
8.2.280.0100.00918.13
8.2.270.0070.01117.18
8.2.260.0080.00018.29
8.2.250.0190.00016.44
8.2.240.0160.00016.91
8.2.230.0090.00622.58
8.2.220.0000.00837.54
8.2.210.0080.00026.77
8.2.200.0030.00616.75
8.2.190.0090.00616.58
8.2.180.0120.00618.29
8.2.170.0100.01022.96
8.2.160.0080.00820.33
8.2.150.0020.00724.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0060.00326.16
8.2.110.0060.00320.53
8.2.100.0040.00817.78
8.2.90.0060.00317.75
8.2.80.0040.00418.69
8.2.70.0040.00417.50
8.2.60.0060.00317.38
8.2.50.0000.00717.55
8.2.40.0080.00018.15
8.2.30.0040.00419.43
8.2.20.0000.00717.86
8.2.10.0040.00419.09
8.2.00.0040.00419.31
8.1.330.0100.00916.69
8.1.320.0140.00516.03
8.1.310.0120.00318.36
8.1.300.0050.00320.20
8.1.290.0090.00018.88
8.1.280.0110.00425.92
8.1.270.0080.00320.70
8.1.260.0070.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00023.81
8.1.230.0030.00620.96
8.1.220.0080.00018.56
8.1.210.0000.00818.77
8.1.200.0050.00317.22
8.1.190.0030.00517.13
8.1.180.0090.00018.10
8.1.170.0040.00417.62
8.1.160.0000.00718.97
8.1.150.0030.00618.71
8.1.140.0070.00018.75
8.1.130.0030.00320.35
8.1.120.0030.00317.35
8.1.110.0000.00717.33
8.1.100.0040.00417.38
8.1.90.0000.00717.29
8.1.80.0070.00017.39
8.1.70.0030.00317.38
8.1.60.0000.00717.41
8.1.50.0060.00317.43
8.1.40.0050.00317.38
8.1.30.0000.00817.62
8.1.20.0040.00417.47
8.1.10.0120.00017.43
8.1.00.0040.00417.34
8.0.300.0050.00318.77
8.0.290.0040.00416.63
8.0.280.0030.00318.38
8.0.270.0070.00017.78
8.0.260.0000.00620.01
8.0.250.0030.00316.83
8.0.240.0000.00716.79
8.0.230.0030.00316.76
8.0.220.0040.00416.70
8.0.210.0000.00716.82
8.0.200.0080.00016.74
8.0.190.0080.00016.89
8.0.180.0000.00816.83
8.0.170.0040.00416.87
8.0.160.0040.00416.79
8.0.150.0000.00716.66
8.0.140.0000.00716.67
8.0.130.0050.00013.27
8.0.120.0030.00716.82
8.0.110.0070.00016.68
8.0.100.0000.00716.80
8.0.90.0030.00616.69
8.0.80.0090.00916.77
8.0.70.0040.00416.68
8.0.60.0020.00516.78
8.0.50.0040.00416.68
8.0.30.0100.00717.25
8.0.20.0090.01017.05
8.0.10.0070.00016.96
8.0.00.0100.00716.52
7.4.330.0070.00015.55
7.4.320.0000.00716.42
7.4.300.0030.00316.45
7.4.290.0000.00816.57
7.4.280.0040.00416.55
7.4.270.0070.00016.35
7.4.260.0030.00313.20
7.4.250.0070.00016.53
7.4.240.0000.00716.45
7.4.230.0000.00716.53
7.4.220.0050.00216.29
7.4.210.0030.01016.33
7.4.200.0000.00716.35
7.4.130.0100.00616.42
7.4.120.0100.00716.36
7.4.110.0130.00316.47
7.4.100.0180.00016.50
7.4.90.0110.00816.36
7.4.80.0110.00619.39
7.4.70.0120.00616.36
7.4.60.0090.00616.43
7.4.50.0030.01316.20
7.4.40.0070.01016.44
7.4.20.0120.00616.46
7.4.10.0040.01216.47
7.4.00.0030.01316.29
7.3.330.0080.00016.22
7.3.320.0050.00013.07
7.3.310.0000.00716.12
7.3.300.0030.00315.96
7.3.290.0070.00916.07
7.3.280.0060.01316.05
7.3.260.0030.01316.32
7.3.240.0100.00916.30
7.3.230.0070.01016.41
7.3.210.0100.00716.13
7.3.200.0140.00316.25
7.3.190.0070.01516.19
7.3.180.0090.00616.09
7.3.170.0060.00916.41
7.3.160.0060.01216.08
7.3.140.0030.01416.44
7.3.130.0090.00916.27
7.3.120.0110.00816.13
7.3.110.0060.01016.34
7.3.100.0100.01016.28
7.3.90.0100.01316.22
7.3.80.0030.01416.18
7.3.70.0100.00616.29
7.3.60.0050.01016.18
7.3.50.0100.00516.18
7.3.40.0120.00916.30
7.3.30.0100.00716.23
7.3.20.0130.00916.29
7.3.10.0070.01016.38
7.3.00.0120.00916.32
7.2.330.0110.00716.40
7.2.320.0060.01116.66
7.2.310.0100.00616.42
7.2.300.0060.00916.58
7.2.290.0100.00716.62
7.2.270.0040.01516.49
7.2.260.0110.00916.59
7.2.250.0070.01016.18
7.2.240.0060.01216.50
7.2.230.0030.02016.25
7.2.220.0140.00316.39
7.2.210.0110.00816.64
7.2.200.0100.00516.32
7.2.190.0130.00416.29
7.2.180.0060.01316.36
7.2.170.0140.00316.41
7.2.160.0140.00416.60
7.2.150.0120.00616.62
7.2.140.0070.01416.58
7.2.130.0140.00716.54
7.2.120.0100.01416.38
7.2.110.0060.01216.45
7.2.100.0140.01016.49
7.2.90.0090.00916.54
7.2.80.0110.01116.38
7.2.70.0110.00716.59
7.2.60.0070.01416.29
7.2.50.0080.01216.24
7.2.40.0090.00916.48
7.2.30.0170.00016.78
7.2.20.0130.01016.46
7.2.10.0100.00716.38
7.2.00.0110.00716.45

preferences:
33.02 ms | 403 KiB | 5 Q