3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array("a" => "green", "b" => "brown", "c" => "blue", "red"); $b = array("a" => "green", "yellow", "red"); $c = array("c" => "blue"); print_r(array_diff($a, $b, $c));

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.00316.50
8.3.50.0130.00821.90
8.3.40.0140.00718.45
8.3.30.0070.00719.02
8.3.20.0070.00020.21
8.3.10.0050.00320.27
8.3.00.0000.00819.25
8.2.180.0000.01616.38
8.2.170.0060.01222.96
8.2.160.0040.01120.39
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0000.00826.16
8.2.120.0030.00520.82
8.2.110.0050.00520.47
8.2.100.0110.00017.91
8.2.90.0090.00019.23
8.2.80.0000.00817.97
8.2.70.0070.00317.63
8.2.60.0030.00618.05
8.2.50.0040.00418.07
8.2.40.0040.00418.09
8.2.30.0000.00819.41
8.2.20.0040.00417.48
8.2.10.0000.00717.91
8.2.00.0040.00417.51
8.1.280.0040.01225.92
8.1.270.0060.00322.16
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0060.00323.92
8.1.230.0090.00319.04
8.1.220.0080.00017.77
8.1.210.0000.00718.77
8.1.200.0060.00317.23
8.1.190.0080.00017.09
8.1.180.0080.00018.10
8.1.170.0030.00618.59
8.1.160.0000.00721.94
8.1.150.0000.00718.72
8.1.140.0040.00417.32
8.1.130.0000.00717.78
8.1.120.0040.00417.41
8.1.110.0000.00717.36
8.1.100.0000.00717.28
8.1.90.0030.00317.41
8.1.80.0040.00417.30
8.1.70.0000.00617.39
8.1.60.0000.01217.52
8.1.50.0030.00517.37
8.1.40.0040.00417.42
8.1.30.0030.00517.46
8.1.20.0050.00317.46
8.1.10.0000.00717.41
8.1.00.0040.00417.41
8.0.300.0060.00318.77
8.0.290.0040.00416.63
8.0.280.0000.00718.37
8.0.270.0020.00517.24
8.0.260.0030.00317.05
8.0.250.0000.00616.78
8.0.240.0070.00016.84
8.0.230.0000.00716.77
8.0.220.0020.00516.87
8.0.210.0040.00416.86
8.0.200.0070.00016.88
8.0.190.0000.00716.75
8.0.180.0070.00016.79
8.0.170.0000.00916.82
8.0.160.0030.00316.87
8.0.150.0030.00316.66
8.0.140.0070.00316.74
8.0.130.0000.00713.28
8.0.120.0040.00416.84
8.0.110.0070.00016.64
8.0.100.0030.00516.72
8.0.90.0040.00416.70
8.0.80.0110.00316.83
8.0.70.0070.00016.64
8.0.60.0050.00316.81
8.0.50.0040.00416.74
8.0.30.0110.01017.04
8.0.20.0120.00817.40
8.0.10.0000.00816.98
8.0.00.0110.00916.73
7.4.330.0020.00215.07
7.4.320.0030.00316.46
7.4.300.0000.00716.43
7.4.290.0000.00716.53
7.4.280.0070.00516.25
7.4.270.0030.00316.52
7.4.260.0030.00316.35
7.4.250.0040.00416.39
7.4.240.0030.00416.45
7.4.230.0000.00716.33
7.4.220.0040.01316.50
7.4.210.0120.00916.59
7.4.200.0030.00316.59
7.4.160.0130.00316.13
7.4.150.0140.00317.40
7.4.140.0080.00917.86
7.4.130.0090.00716.42
7.4.120.0090.01116.47
7.4.110.0040.01216.41
7.4.100.0120.00916.35
7.4.90.0070.01016.56
7.4.80.0030.01619.39
7.4.70.0060.00916.51
7.4.60.0220.00416.27
7.4.50.0030.00516.59
7.4.40.0150.00416.31
7.4.30.0030.01216.43
7.4.00.0060.00914.71
7.3.330.0060.00013.04
7.3.320.0030.00312.99
7.3.310.0030.00315.98
7.3.300.0000.00716.12
7.3.290.0110.00416.14
7.3.280.0110.00816.09
7.3.270.0170.00017.40
7.3.260.0100.00616.11
7.3.250.0140.00716.15
7.3.240.0130.00616.30
7.3.230.0100.00716.39
7.3.210.0130.00316.30
7.3.200.0080.01419.39
7.3.190.0030.01416.46
7.3.180.0080.00816.25
7.3.170.0070.01316.44
7.3.160.0030.01216.30
7.3.10.0100.00316.16
7.3.00.0060.00616.47
7.2.330.0100.00716.40
7.2.320.0070.01016.26
7.2.310.0060.01216.43
7.2.300.0060.01016.45
7.2.290.0030.01416.38
7.2.130.0120.00616.66
7.2.120.0070.00716.38
7.2.110.0030.01016.84
7.2.100.0070.00716.59
7.2.90.0000.01516.45
7.2.80.0030.01016.73
7.2.70.0040.00716.62
7.2.60.0030.01016.64
7.2.50.0040.00816.61
7.2.40.0090.00616.74
7.2.30.0030.01316.91
7.2.20.0070.00716.48
7.2.10.0000.01016.46
7.2.00.0030.01118.06
7.1.250.0140.00315.49
7.1.70.0080.00016.96
7.1.60.0110.01419.61
7.1.50.0070.01416.90
7.1.00.0070.07322.46
7.0.200.0070.00316.63
7.0.140.0130.06321.95
7.0.60.0130.08020.03
7.0.50.0030.04017.89
7.0.40.0130.08020.12
7.0.30.0270.03720.09
7.0.20.0170.05020.16
7.0.10.0030.08720.09
7.0.00.0070.08320.20
5.6.280.0030.07020.80
5.6.210.0100.07020.74
5.6.200.0000.05318.23
5.6.190.0000.04720.67
5.6.180.0400.04320.77
5.6.170.0330.05020.33
5.6.160.0130.07720.46
5.6.150.0100.07718.11
5.6.140.0030.05318.15
5.6.130.0000.04318.16
5.6.120.0100.08320.73
5.6.110.0200.07320.99
5.6.100.0000.07721.03
5.6.90.0070.08020.96
5.6.80.0230.07020.50
5.5.350.0170.05320.39
5.5.340.0100.07317.97
5.5.330.0100.08020.21
5.5.320.0100.07720.13
5.5.310.0200.06020.29
5.5.300.0000.08317.88
5.5.290.0070.08018.00
5.5.280.0200.07020.77
5.5.270.0100.04020.71
5.5.260.0170.06720.60
5.5.250.0070.08320.69
5.5.240.0100.07720.36
5.4.450.0700.04319.46
5.4.440.0770.04019.43
5.4.430.0130.05719.14
5.4.420.0270.06019.50
5.4.410.0130.05319.42
5.4.400.0200.05018.82
5.4.390.0170.05319.19
5.4.380.0430.06018.73
5.4.370.0370.07018.50
5.4.360.0300.05718.72
5.4.350.0270.06018.62
5.4.340.0330.04318.45
5.4.320.0050.03812.45
5.4.310.0080.03612.45
5.4.300.0090.03312.45
5.4.290.0080.03512.45
5.4.280.0070.03512.34
5.4.270.0090.03412.35
5.4.260.0040.03912.34
5.4.250.0070.03812.35
5.4.240.0080.03712.34
5.4.230.0070.03712.34
5.4.220.0050.03712.34
5.4.210.0050.03712.34
5.4.200.0070.03812.34
5.4.190.0060.03712.33
5.4.180.0100.03512.34
5.4.170.0090.03312.35
5.4.160.0090.03412.34
5.4.150.0070.03612.34
5.4.140.0080.03712.02
5.4.130.0110.03812.01
5.4.120.0100.03611.96
5.4.110.0030.04011.97
5.4.100.0070.03511.96
5.4.90.0050.04311.96
5.4.80.0060.03711.96
5.4.70.0080.03211.96
5.4.60.0090.03411.96
5.4.50.0040.04311.96
5.4.40.0040.03911.95
5.4.30.0070.03511.94
5.4.20.0050.03811.95
5.4.10.0100.03511.95
5.4.00.0110.04011.43
5.3.290.0120.03912.80
5.3.280.0070.03712.70
5.3.270.0070.03812.73
5.3.260.0030.04612.72
5.3.250.0070.03612.72
5.3.240.0050.03912.72
5.3.230.0090.03412.71
5.3.220.0070.03612.68
5.3.210.0030.04112.68
5.3.200.0060.04012.68
5.3.190.0050.03912.68
5.3.180.0090.03412.68
5.3.170.0060.03712.67
5.3.160.0080.03512.67
5.3.150.0120.04812.67
5.3.140.0080.03412.66
5.3.130.0080.03812.66
5.3.120.0070.03812.65
5.3.110.0100.03612.66
5.3.100.0080.04312.12
5.3.90.0090.03512.08
5.3.80.0060.04212.08
5.3.70.0090.03512.08
5.3.60.0120.03212.07
5.3.50.0070.03812.00
5.3.40.0080.04012.00
5.3.30.0110.03311.94
5.3.20.0080.03911.73
5.3.10.0030.03811.69
5.3.00.0080.04111.68
5.2.170.0090.0289.18
5.2.160.0150.0209.18
5.2.150.0040.0329.18
5.2.140.0070.0309.17
5.2.130.0090.0269.13
5.2.120.0080.0259.13
5.2.110.0040.0339.14
5.2.100.0050.0379.14
5.2.90.0050.0299.14
5.2.80.0070.0289.14
5.2.70.0060.0309.14
5.2.60.0050.0339.09
5.2.50.0040.0309.05
5.2.40.0020.0319.04
5.2.30.0070.0289.01
5.2.20.0040.0299.00
5.2.10.0050.0328.92
5.2.00.0020.0328.77
5.1.60.0050.0238.07
5.1.50.0000.0308.06
5.1.40.0030.0268.04
5.1.30.0050.0258.39
5.1.20.0080.0248.41
5.1.10.0040.0268.14
5.1.00.0070.0228.14
5.0.50.0070.0176.62
5.0.40.0050.0176.47
5.0.30.0070.0276.29
5.0.20.0040.0186.26
5.0.10.0120.0126.23
5.0.00.0070.0276.23
4.4.90.0020.0164.78
4.4.80.0000.0184.75
4.4.70.0020.0164.75
4.4.60.0030.0164.75
4.4.50.0020.0164.77
4.4.40.0040.0254.71
4.4.30.0010.0184.76
4.4.20.0030.0184.84
4.4.10.0030.0164.85
4.4.00.0020.0264.76
4.3.110.0040.0144.67
4.3.100.0040.0144.66
4.3.90.0020.0154.63
4.3.80.0030.0244.59
4.3.70.0040.0134.63
4.3.60.0030.0154.62
4.3.50.0020.0194.63
4.3.40.0040.0264.54
4.3.30.0020.0163.29
4.3.20.0040.0143.26
4.3.10.0020.0183.22
4.3.00.0100.01313.57

preferences:
58.61 ms | 401 KiB | 5 Q