3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = array("a" => "", "", "blue"); $array2 = array("b" => "green", "yellow", "red"); $result = array_intersect($array1, $array2); var_dump($result); ?>

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.0140.00016.63
8.3.50.0120.00522.84
8.3.40.0120.00618.71
8.3.30.0100.00318.73
8.3.20.0040.00420.16
8.3.10.0040.00423.48
8.3.00.0080.00019.04
8.2.180.0180.00018.41
8.2.170.0140.00718.91
8.2.160.0130.00022.96
8.2.150.0080.00024.18
8.2.140.0080.00624.66
8.2.130.0050.00326.16
8.2.120.0040.00421.05
8.2.110.0090.00022.20
8.2.100.0030.00917.77
8.2.90.0090.00019.05
8.2.80.0030.00617.97
8.2.70.0060.00317.63
8.2.60.0000.00917.93
8.2.50.0030.00518.07
8.2.40.0000.00919.88
8.2.30.0000.00717.80
8.2.20.0050.00317.59
8.2.10.0050.00318.04
8.2.00.0040.00417.77
8.1.280.0130.01025.92
8.1.270.0160.00423.91
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0110.00023.88
8.1.230.0070.00419.03
8.1.220.0030.00617.74
8.1.210.0000.00818.77
8.1.200.0090.00317.35
8.1.190.0000.00817.11
8.1.180.0000.00818.10
8.1.170.0040.00418.40
8.1.160.0050.00321.81
8.1.150.0000.00718.87
8.1.140.0040.00417.30
8.1.130.0070.00017.69
8.1.120.0030.00317.30
8.1.110.0000.00817.31
8.1.100.0040.00417.38
8.1.90.0070.00017.39
8.1.80.0050.00217.29
8.1.70.0030.00317.38
8.1.60.0030.00617.36
8.1.50.0040.00417.41
8.1.40.0000.00817.50
8.1.30.0080.00017.62
8.1.20.0040.00417.48
8.1.10.0040.00417.50
8.1.00.0000.00717.26
8.0.300.0070.00018.77
8.0.290.0030.00516.63
8.0.280.0000.00718.28
8.0.270.0070.00017.16
8.0.260.0000.00817.18
8.0.250.0030.00316.88
8.0.240.0030.00316.77
8.0.230.0030.00416.75
8.0.220.0030.00316.79
8.0.210.0000.00816.76
8.0.200.0000.00616.78
8.0.190.0060.00316.77
8.0.180.0090.00316.83
8.0.170.0040.00416.80
8.0.160.0000.00716.79
8.0.150.0000.00716.80
8.0.140.0040.00416.75
8.0.130.0000.00513.28
8.0.120.0000.00716.69
8.0.110.0070.00016.74
8.0.100.0000.00716.66
8.0.90.0040.00416.65
8.0.80.0100.00716.73
8.0.70.0070.00016.70
8.0.60.0030.00616.65
8.0.50.0050.00316.70
8.0.30.0090.01216.99
8.0.20.0100.00917.40
8.0.10.0000.00716.91
8.0.00.0070.01416.63
7.4.330.0020.00215.00
7.4.320.0060.00016.35
7.4.300.0000.00616.49
7.4.290.0070.00016.43
7.4.280.0000.00716.43
7.4.270.0000.00716.57
7.4.260.0070.00016.45
7.4.250.0040.00416.41
7.4.240.0070.00016.45
7.4.230.0000.00716.50
7.4.220.0170.00016.46
7.4.210.0170.00316.49
7.4.200.0000.00716.45
7.4.160.0100.01316.45
7.4.150.0090.00917.40
7.4.140.0090.01217.86
7.4.130.0110.00616.29
7.4.120.0100.00716.44
7.4.110.0100.00716.40
7.4.100.0130.00316.34
7.4.90.0140.00316.39
7.4.80.0150.00919.39
7.4.70.0070.00716.42
7.4.60.0110.00716.29
7.4.50.0030.00616.52
7.4.40.0060.01216.50
7.4.30.0070.01016.61
7.4.00.0000.01314.94
7.3.330.0060.00012.86
7.3.320.0030.00312.86
7.3.310.0030.00316.22
7.3.300.0070.00016.07
7.3.290.0090.01216.16
7.3.280.0100.00816.13
7.3.270.0110.00617.40
7.3.260.0090.01016.39
7.3.250.0110.00916.26
7.3.240.0100.00616.11
7.3.230.0140.00316.41
7.3.210.0160.00716.29
7.3.200.0130.00319.39
7.3.190.0120.00816.43
7.3.180.0040.01216.48
7.3.170.0140.00316.44
7.3.160.0090.00616.32
7.2.330.0060.01116.26
7.2.320.0090.00916.58
7.2.310.0070.01016.64
7.2.300.0090.01216.70
7.2.290.0070.01016.59
7.2.00.0090.00619.22
7.1.200.0080.00815.73
7.1.100.0040.00817.88
7.1.70.0000.00917.16
7.1.60.0100.01419.40
7.1.50.0090.01216.93
7.1.00.0070.07322.46
7.0.200.0000.00716.77
7.0.140.0030.07322.05
7.0.60.0030.07719.79
7.0.50.0070.04717.80
7.0.40.0170.08020.08
7.0.30.0330.05320.11
7.0.20.0300.04720.04
7.0.10.0100.06720.16
7.0.00.0070.03720.20
5.6.280.0030.07321.14
5.6.210.0070.04320.70
5.6.200.0100.07718.17
5.6.190.0070.09020.56
5.6.180.0400.05320.57
5.6.170.0370.07020.34
5.6.160.0030.05020.50
5.6.150.0070.07318.22
5.6.140.0100.06018.14
5.6.130.0030.08318.14
5.6.120.0100.08021.05
5.6.110.0130.08020.96
5.6.100.0030.08321.07
5.6.90.0070.07321.02
5.6.80.0100.03720.38
5.5.350.0170.03720.42
5.5.340.0070.04717.96
5.5.330.0100.07320.07
5.5.320.0300.07020.50
5.5.310.0330.07720.41
5.5.300.0130.07317.96
5.5.290.0070.05017.95
5.5.280.0030.07720.77
5.5.270.0100.08020.73
5.5.260.0070.07020.92
5.5.250.0170.06720.45
5.5.240.0130.07020.18
5.4.450.0430.05719.21
5.4.440.0200.05319.41
5.4.430.0170.04719.39
5.4.420.0170.03719.40
5.4.410.0230.04719.25
5.4.400.0000.05319.25
5.4.390.0270.03319.05
5.4.380.0370.05318.46
5.4.370.0400.04718.59
5.4.360.0330.04718.53
5.4.350.0530.04318.67
5.4.340.0370.05018.72
5.4.320.0070.03512.45
5.4.310.0050.03812.45
5.4.300.0050.03612.45
5.4.290.0040.03912.45
5.4.280.0050.03512.34
5.4.270.0050.03612.35
5.4.260.0080.04512.35
5.4.250.0040.04112.34
5.4.240.0070.03412.34
5.4.230.0090.03412.34
5.4.220.0070.03912.34
5.4.210.0050.03512.34
5.4.200.0060.03612.34
5.4.190.0080.03312.34
5.4.180.0050.03712.34
5.4.170.0090.04112.34
5.4.160.0050.04412.34
5.4.150.0070.03512.34
5.4.140.0090.03612.02
5.4.130.0060.03712.01
5.4.120.0050.03811.97
5.4.110.0070.03611.96
5.4.100.0080.03911.96
5.4.90.0070.04011.96
5.4.80.0080.03811.96
5.4.70.0060.03711.96
5.4.60.0090.03711.96
5.4.50.0060.04411.96
5.4.40.0080.03811.95
5.4.30.0090.03911.94
5.4.20.0070.03511.95
5.4.10.0080.03311.95
5.4.00.0050.03611.43
5.3.290.0050.04012.80
5.3.280.0090.03512.71
5.3.270.0060.03912.72
5.3.260.0060.03912.72
5.3.250.0050.03812.72
5.3.240.0060.03912.72
5.3.230.0050.03812.71
5.3.220.0080.03512.68
5.3.210.0080.03812.68
5.3.200.0070.03612.68
5.3.190.0040.03912.68
5.3.180.0040.04112.67
5.3.170.0050.03812.67
5.3.160.0060.03912.67
5.3.150.0070.03912.67
5.3.140.0100.03512.66
5.3.130.0080.04612.66
5.3.120.0100.03912.66
5.3.110.0030.05012.65
5.3.100.0070.03612.12
5.3.90.0090.04012.09
5.3.80.0080.04512.07
5.3.70.0070.04212.07
5.3.60.0050.03712.07
5.3.50.0060.03512.00
5.3.40.0010.04012.00
5.3.30.0120.03411.95
5.3.20.0090.03111.72
5.3.10.0060.04211.69
5.3.00.0050.03711.68
5.2.170.0040.0299.18
5.2.160.0050.0289.18
5.2.150.0070.0279.18
5.2.140.0040.0309.17
5.2.130.0040.0289.14
5.2.120.0030.0329.13
5.2.110.0040.0309.14
5.2.100.0040.0299.14
5.2.90.0080.0279.14
5.2.80.0090.0359.14
5.2.70.0070.0369.13
5.2.60.0030.0329.09
5.2.50.0050.0299.05
5.2.40.0040.0299.03
5.2.30.0020.0329.01
5.2.20.0030.0319.00
5.2.10.0040.0288.92
5.2.00.0030.0308.78
5.1.60.0070.0218.06
5.1.50.0030.0268.05
5.1.40.0040.0248.04
5.1.30.0080.0228.39
5.1.20.0040.0268.41
5.1.10.0040.0278.13
5.1.00.0060.0248.14
5.0.50.0030.0246.61
5.0.40.0080.0156.48
5.0.30.0060.0286.28
5.0.20.0030.0206.26
5.0.10.0040.0196.24
5.0.00.0030.0316.23
4.4.90.0010.0174.78
4.4.80.0030.0154.75
4.4.70.0000.0184.75
4.4.60.0020.0164.76
4.4.50.0050.0134.77
4.4.40.0010.0274.71
4.4.30.0010.0174.76
4.4.20.0030.0154.84
4.4.10.0030.0144.85
4.4.00.0010.0264.76
4.3.110.0020.0164.67
4.3.100.0020.0154.67
4.3.90.0040.0134.63
4.3.80.0040.0234.58
4.3.70.0030.0134.63
4.3.60.0030.0144.63
4.3.50.0040.0144.63
4.3.40.0020.0254.53
4.3.30.0040.0153.29
4.3.20.0020.0163.26
4.3.10.0030.0153.22
4.3.00.0000.02015.63

preferences:
39.63 ms | 401 KiB | 5 Q