3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a1 = array(2,array()); $a2 = array(2); $b = array_diff_assoc($a1, $a2); //var_dump($b);

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.70.0120.00316.63
8.3.60.0110.00316.25
8.3.50.0100.01022.85
8.3.40.0070.00718.60
8.3.30.0170.00318.93
8.3.20.0100.00320.27
8.3.10.0040.00423.61
8.3.00.0040.00419.25
8.2.180.0080.00818.28
8.2.170.0070.00722.96
8.2.160.0130.00320.27
8.2.150.0050.00324.18
8.2.140.0000.00724.66
8.2.130.0080.00026.16
8.2.120.0080.00021.09
8.2.110.0090.00020.94
8.2.100.0070.00317.78
8.2.90.0000.00817.75
8.2.80.0000.00817.97
8.2.70.0040.00417.50
8.2.60.0080.00017.90
8.2.50.0060.00318.07
8.2.40.0070.00018.03
8.2.30.0000.00817.99
8.2.20.0040.00417.48
8.2.10.0030.00318.02
8.2.00.0070.00017.60
8.1.280.0070.00725.92
8.1.270.0090.00023.80
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00422.59
8.1.230.0060.00620.97
8.1.220.0100.00017.74
8.1.210.0080.00018.77
8.1.200.0060.00317.10
8.1.190.0040.00417.00
8.1.180.0030.00618.89
8.1.170.0000.00818.30
8.1.160.0000.00721.93
8.1.150.0000.00718.80
8.1.140.0050.00217.25
8.1.130.0040.00417.89
8.1.120.0040.00417.30
8.1.110.0040.00317.45
8.1.100.0030.00317.41
8.1.90.0030.00317.38
8.1.80.0030.00317.41
8.1.70.0030.00317.26
8.1.60.0030.00617.39
8.1.50.0000.00817.46
8.1.40.0000.00817.32
8.1.30.0060.00317.52
8.1.20.0070.00017.60
8.1.10.0040.00417.30
8.1.00.0030.00517.39
8.0.300.0000.00719.90
8.0.290.0040.00416.58
8.0.280.0030.00318.44
8.0.270.0070.00017.18
8.0.260.0060.00017.02
8.0.250.0050.00216.78
8.0.240.0070.00016.74
8.0.230.0030.00316.81
8.0.220.0050.00216.83
8.0.210.0000.00716.82
8.0.200.0030.00316.73
8.0.190.0000.00816.90
8.0.180.0040.00416.83
8.0.170.0000.00716.72
8.0.160.0030.00516.86
8.0.150.0070.00016.73
8.0.140.0000.00816.76
8.0.130.0030.00313.20
8.0.120.0050.00216.80
8.0.110.0040.00416.79
8.0.100.0080.00016.79
8.0.90.0040.00416.87
8.0.80.0080.00816.69
8.0.70.0040.00416.67
8.0.60.0000.00716.86
8.0.50.0070.00016.79
8.0.30.0070.01216.90
8.0.20.0130.00717.40
8.0.10.0000.00716.76
8.0.00.0120.00816.65
7.4.330.0060.00015.03
7.4.320.0030.00316.55
7.4.300.0060.00016.53
7.4.290.0070.00016.44
7.4.280.0000.00816.45
7.4.270.0030.00316.44
7.4.260.0030.00316.50
7.4.250.0040.00416.50
7.4.240.0050.00216.53
7.4.230.0030.00316.59
7.4.220.0100.00716.38
7.4.210.0090.00616.37
7.4.200.0000.00716.41
7.4.160.0060.01016.42
7.4.150.0090.00917.40
7.4.140.0090.00817.86
7.4.130.0080.01416.42
7.4.120.0100.00716.44
7.4.110.0100.00616.38
7.4.100.0070.01016.34
7.4.90.0140.00316.12
7.4.80.0070.01619.39
7.4.70.0070.01016.30
7.4.60.0090.00916.09
7.4.50.0000.00816.34
7.4.40.0150.00316.36
7.4.30.0080.00816.38
7.4.00.0000.01614.61
7.3.330.0050.00012.86
7.3.320.0030.00312.96
7.3.310.0030.00316.18
7.3.300.0000.00616.04
7.3.290.0120.00316.16
7.3.280.0100.00616.16
7.3.270.0090.00917.40
7.3.260.0100.00616.13
7.3.250.0110.01016.24
7.3.240.0030.01316.16
7.3.230.0100.00716.39
7.3.210.0150.00316.27
7.3.200.0120.00919.39
7.3.190.0120.00316.23
7.3.180.0080.00816.47
7.3.170.0060.00916.43
7.3.160.0000.01616.25
7.2.330.0130.00916.53
7.2.320.0100.00616.37
7.2.310.0180.00016.41
7.2.300.0170.00316.23
7.2.290.0090.00616.65
7.2.60.0070.00716.80
7.2.00.0090.00919.26
7.1.200.0030.00915.69
7.1.100.0060.00618.11
7.1.70.0040.00817.07
7.1.60.0140.01019.46
7.1.50.0140.01016.80
7.1.00.0030.07722.27
7.0.200.0000.00716.41
7.0.140.0030.07722.05
7.0.60.0070.08319.80
7.0.50.0130.07717.72
7.0.40.0270.04020.30
7.0.30.0530.06720.18
7.0.20.0300.07720.30
7.0.10.0170.08020.09
7.0.00.0100.08320.07
5.6.280.0070.07021.11
5.6.210.0100.06320.66
5.6.200.0170.07718.17
5.6.190.0070.04020.60
5.6.180.0330.03720.41
5.6.170.0330.07720.47
5.6.160.0130.07020.47
5.6.150.0000.07318.22
5.6.140.0070.05018.16
5.6.130.0000.04318.13
5.6.120.0170.06721.14
5.6.110.0030.08721.02
5.6.100.0170.05021.10
5.6.90.0030.08721.07
5.6.80.0230.06320.38
5.6.70.4270.03720.42
5.5.350.0170.06720.32
5.5.340.0070.07317.95
5.5.330.0030.05020.40
5.5.320.0000.05020.30
5.5.310.0230.06020.20
5.5.300.0070.08318.01
5.5.290.0070.04717.97
5.5.280.0170.04320.88
5.5.270.0030.04720.96
5.5.260.0000.09020.63
5.5.250.0100.07020.74
5.5.240.0230.07020.34
5.4.450.0130.05019.54
5.4.440.0130.03719.13
5.4.430.0070.05019.45
5.4.420.0130.04319.21
5.4.410.0100.03019.13
5.4.400.0100.03719.16
5.4.390.0070.03319.10
5.4.380.0400.06318.72
5.4.370.0430.05018.58
5.4.360.0400.06018.66
5.4.350.0400.05318.68
5.4.340.0430.05318.49
5.4.320.0050.03712.45
5.4.310.0080.04312.45
5.4.300.0070.03812.45
5.4.290.0080.03812.45
5.4.280.0030.04012.34
5.4.270.0080.03612.34
5.4.260.0100.04312.35
5.4.250.0080.04112.34
5.4.240.0070.03712.34
5.4.230.0030.04612.34
5.4.220.0070.03812.34
5.4.210.0070.03812.34
5.4.200.0080.04612.34
5.4.190.0060.04312.34
5.4.180.0060.03712.33
5.4.170.0100.03712.34
5.4.160.0050.03712.34
5.4.150.0070.03912.34
5.4.140.0040.04112.02
5.4.130.0090.03612.01
5.4.120.0060.03711.96
5.4.110.0060.03911.96
5.4.100.0100.04211.96
5.4.90.0050.04711.96
5.4.80.0070.03511.96
5.4.70.0060.03511.96
5.4.60.0070.04611.96
5.4.50.0050.03711.96
5.4.40.0110.03411.95
5.4.30.0080.04311.95
5.4.20.0070.03311.95
5.4.10.0080.03411.95
5.4.00.0070.03411.43
5.3.290.0100.03612.80
5.3.280.0080.03812.71
5.3.270.0120.04112.72
5.3.260.0100.03812.72
5.3.250.0100.03712.72
5.3.240.0070.04312.72
5.3.230.0110.03712.71
5.3.220.0080.03412.68
5.3.210.0050.04112.68
5.3.200.0060.04212.68
5.3.190.0100.04012.68
5.3.180.0050.03912.68
5.3.170.0040.03912.67
5.3.160.0070.03612.67
5.3.150.0080.04212.67
5.3.140.0110.04112.66
5.3.130.0060.05012.66
5.3.120.0080.04012.66
5.3.110.0080.04512.66
5.3.100.0070.04012.12
5.3.90.0060.03512.08
5.3.80.0070.03812.07
5.3.70.0090.03812.08
5.3.60.0080.04512.06
5.3.50.0070.04112.00
5.3.40.0100.03612.00
5.3.30.0080.03511.94
5.3.20.0060.03511.72
5.3.10.0080.03411.69
5.3.00.0080.03311.68
5.2.170.0080.0319.18
5.2.160.0050.0369.18
5.2.150.0040.0409.18
5.2.140.0070.0319.18
5.2.130.0120.0309.13
5.2.120.0090.0249.13
5.2.110.0060.0289.14
5.2.100.0060.0279.14
5.2.90.0060.0279.14
5.2.80.0040.0329.14
5.2.70.0050.0309.13
5.2.60.0080.0279.09
5.2.50.0100.0369.05
5.2.40.0060.0319.03
5.2.30.0080.0289.00
5.2.20.0080.0299.00
5.2.10.0120.0308.93
5.2.00.0050.0328.79
5.1.60.0020.0308.07
5.1.50.0070.0258.07
5.1.40.0010.0278.05
5.1.30.0080.0268.41
5.1.20.0040.0268.43
5.1.10.0060.0258.15
5.1.00.0040.0258.14
5.0.50.0040.0206.63
5.0.40.0030.0196.48
5.0.30.0020.0326.30
5.0.20.0010.0216.27
5.0.10.0040.0186.25
5.0.00.0020.0326.24
4.4.90.0040.0144.78
4.4.80.0020.0154.76
4.4.70.0050.0134.76
4.4.60.0020.0164.75
4.4.50.0010.0194.77
4.4.40.0080.0334.71
4.4.30.0030.0224.76
4.4.20.0030.0184.85
4.4.10.0040.0154.85
4.4.00.0030.0274.76
4.3.110.0020.0284.67
4.3.100.0020.0194.67
4.3.90.0020.0154.64
4.3.80.0020.0344.58
4.3.70.0030.0204.63
4.3.60.0080.0104.63
4.3.50.0020.0224.63
4.3.40.0010.0294.54
4.3.30.0020.0213.30
4.3.20.0050.0243.27
4.3.10.0040.0153.23
4.3.00.0000.01714.87

preferences:
33.17 ms | 401 KiB | 5 Q