3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array= array(1,2,3,3,4,5); print_r(array_diff_key($array, array_unique($array)));

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.0090.00616.50
8.3.50.0110.00922.87
8.3.40.0060.00918.72
8.3.30.0100.00718.68
8.3.20.0130.00020.21
8.3.10.0040.00423.36
8.3.00.0080.00017.38
8.2.180.0070.00716.32
8.2.170.0120.00322.96
8.2.160.0030.01020.52
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.01126.16
8.2.120.0050.00321.09
8.2.110.0070.00322.20
8.2.100.0040.00817.66
8.2.90.0030.00619.05
8.2.80.0040.00417.97
8.2.70.0030.00517.61
8.2.60.0040.00417.68
8.2.50.0000.00818.07
8.2.40.0060.00317.98
8.2.30.0050.00217.97
8.2.20.0060.00317.59
8.2.10.0060.00317.96
8.2.00.0070.00017.64
8.1.280.0110.00425.92
8.1.270.0110.00423.70
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0090.00023.83
8.1.230.0100.00019.18
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0030.00617.22
8.1.190.0070.00017.10
8.1.180.0040.00418.10
8.1.170.0000.00918.53
8.1.160.0040.00421.98
8.1.150.0030.00518.75
8.1.140.0040.00417.29
8.1.130.0070.00017.81
8.1.120.0040.00417.40
8.1.110.0030.00517.27
8.1.100.0030.00317.38
8.1.90.0000.00717.29
8.1.80.0070.00017.30
8.1.70.0000.00717.35
8.1.60.0030.00617.51
8.1.50.0030.00617.47
8.1.40.0080.00017.38
8.1.30.0040.00417.52
8.1.20.0000.00817.59
8.1.10.0050.00317.45
8.1.00.0070.00017.38
8.0.300.0060.00318.77
8.0.290.0080.00016.58
8.0.280.0030.00318.42
8.0.270.0050.00217.07
8.0.260.0030.00317.19
8.0.250.0030.00316.86
8.0.240.0060.00016.84
8.0.230.0000.00716.82
8.0.220.0060.00316.86
8.0.210.0000.00716.84
8.0.200.0000.00616.85
8.0.190.0070.00016.81
8.0.180.0100.00016.82
8.0.170.0040.00416.85
8.0.160.0040.00416.71
8.0.150.0040.00416.79
8.0.140.0000.00816.77
8.0.130.0050.00513.27
8.0.120.0000.00816.83
8.0.110.0040.00416.90
8.0.100.0040.00416.88
8.0.90.0000.00816.63
8.0.80.0000.01516.76
8.0.70.0000.00716.64
8.0.60.0000.00716.59
8.0.50.0000.00716.83
8.0.30.0130.00716.85
8.0.20.0110.01117.40
8.0.10.0070.00016.83
8.0.00.0100.01016.67
7.4.330.0030.00315.07
7.4.320.0030.00316.50
7.4.300.0030.00316.37
7.4.290.0030.00316.44
7.4.280.0040.00416.40
7.4.270.0030.00316.33
7.4.260.0030.00316.55
7.4.250.0070.00016.38
7.4.240.0050.00216.37
7.4.230.0050.00216.55
7.4.220.0030.01416.47
7.4.210.0110.00716.43
7.4.200.0070.00016.46
7.4.160.0100.00616.40
7.4.150.0070.01117.40
7.4.140.0110.00717.86
7.4.130.0060.01116.44
7.4.120.0130.00716.32
7.4.110.0090.01316.32
7.4.100.0060.01016.32
7.4.90.0100.00716.55
7.4.80.0180.00619.39
7.4.70.0080.01116.36
7.4.60.0060.01516.35
7.4.50.0060.00316.38
7.4.40.0150.00016.38
7.4.30.0090.00616.53
7.4.00.0030.01014.86
7.3.330.0030.00312.97
7.3.320.0000.00612.88
7.3.310.0000.00716.16
7.3.300.0030.00316.17
7.3.290.0090.00616.11
7.3.280.0080.00916.15
7.3.270.0090.00917.40
7.3.260.0070.01416.33
7.3.250.0110.00616.36
7.3.240.0100.00616.43
7.3.230.0130.00316.39
7.3.210.0140.00716.48
7.3.200.0060.01319.39
7.3.190.0080.00816.36
7.3.180.0070.01116.02
7.3.170.0090.00916.27
7.3.160.0090.00616.25
7.3.10.0030.01316.60
7.3.00.0120.00316.49
7.2.330.0070.01116.25
7.2.320.0060.01016.50
7.2.310.0030.01216.55
7.2.300.0150.00916.41
7.2.290.0060.01216.23
7.2.130.0060.00316.70
7.2.120.0100.00316.44
7.2.110.0000.00916.81
7.2.100.0040.01116.49
7.2.90.0070.00716.82
7.2.80.0060.00616.83
7.2.70.0070.00716.71
7.2.60.0030.00916.76
7.2.50.0060.00616.57
7.2.40.0120.00416.64
7.2.30.0100.00616.76
7.2.20.0090.00616.79
7.2.10.0060.00316.80
7.2.00.0020.01018.02
7.1.250.0070.00315.62
7.1.200.0120.00015.70
7.1.100.0090.00918.14
7.1.70.0040.00417.13
7.1.60.0040.02119.40
7.1.50.0200.00316.51
7.1.00.0070.07022.35
7.0.200.0040.00416.68
7.0.140.0100.06722.09
7.0.60.0070.07719.82
7.0.50.0100.08017.84
7.0.40.0070.07320.15
7.0.30.0270.05320.07
7.0.20.0170.06720.16
7.0.10.0270.07720.12
7.0.00.0100.05020.07
5.6.280.0100.06720.95
5.6.210.0100.08320.46
5.6.200.0070.05018.12
5.6.190.0070.04020.61
5.6.180.3370.03720.77
5.6.170.0230.04020.54
5.6.160.0000.04320.43
5.6.150.0100.07718.27
5.6.140.0130.08018.25
5.6.130.0030.04018.16
5.6.120.0130.08021.04
5.6.110.0100.08320.96
5.6.100.0130.06320.97
5.6.90.0070.07721.03
5.6.80.0070.03720.50
5.6.70.0200.08320.39
5.5.350.0300.07720.38
5.5.340.0130.05718.02
5.5.330.0130.07320.35
5.5.320.0400.05320.35
5.5.310.0200.07720.26
5.5.300.0030.05317.94
5.5.290.0030.04717.94
5.5.280.0100.05320.86
5.5.270.0030.07320.87
5.5.260.0000.04720.87
5.5.250.0070.03720.61
5.5.240.4200.03320.28
5.4.450.4000.03319.32
5.4.440.3700.04019.41
5.4.430.3800.04319.63
5.4.420.3730.04019.45
5.4.410.3630.04019.39
5.4.400.3800.04019.08
5.4.390.3070.03319.08
5.4.380.3670.04019.05
5.4.370.3600.03719.09
5.4.360.3700.04319.01
5.4.350.3700.04018.85
5.4.340.3700.03719.00
5.4.320.4000.04719.16
5.4.310.3170.03719.31
5.4.300.3370.03719.19
5.4.290.3330.03718.84
5.4.280.4230.04018.86
5.4.270.3370.03718.98
5.4.260.3370.03318.98
5.4.250.3870.04719.08
5.4.240.3370.04018.86
5.4.230.3630.03718.84
5.4.220.3870.02718.97
5.4.210.3600.03719.31
5.4.200.3670.04018.93
5.4.190.3900.04319.29
5.4.180.3970.03319.13
5.4.170.3800.03719.21
5.4.160.3670.03319.13
5.4.150.3630.04719.07
5.4.140.3630.03716.52
5.4.130.3370.04016.32
5.4.120.3470.03016.35
5.4.110.4970.03716.54
5.4.100.4230.03316.19
5.4.90.4230.03016.54
5.4.80.3130.03316.43
5.4.70.3470.03716.44
5.4.60.3500.03716.53
5.4.50.3230.04016.34
5.4.40.4030.03716.24
5.4.30.4030.03016.48
5.4.20.4370.03316.53
5.4.10.4270.03716.34
5.4.00.4070.03715.95
5.3.290.3670.03314.56
5.3.280.3570.04014.50
5.3.270.3870.04014.60
5.3.260.3570.02714.61
5.3.250.3270.03314.61
5.3.240.3700.03714.60
5.3.230.3370.03714.56
5.3.220.3730.03014.47
5.3.210.3670.03714.46
5.3.200.4370.03314.47
5.3.190.3770.03714.64
5.3.180.3570.03714.57
5.3.170.3470.03714.67
5.3.160.3830.03014.53
5.3.150.3730.03314.71
5.3.140.3430.04714.55
5.3.130.3970.04314.76
5.3.120.4930.04314.54
5.3.110.3970.04014.54
5.3.100.3970.04314.04
5.3.90.3730.03714.00
5.3.80.3830.03013.91
5.3.70.3270.03313.93
5.3.60.3330.03313.90
5.3.50.3630.04314.10
5.3.40.4000.03713.86
5.3.30.4070.02313.84
5.3.20.3970.03313.77
5.3.10.3970.03713.56
5.3.00.4170.03313.63
5.2.170.3070.03011.15
5.2.160.2930.03011.25
5.2.150.3670.03011.30
5.2.140.3470.03011.06
5.2.130.3630.03011.18
5.2.120.4400.02710.99
5.2.110.3530.03311.00
5.2.100.3770.02711.01
5.2.90.3730.02311.01
5.2.80.3530.02711.16
5.2.70.3630.02311.01
5.2.60.3700.02710.96
5.2.50.3570.03311.07
5.2.40.2930.03310.94
5.2.30.2730.03010.89
5.2.20.2970.02310.87
5.2.10.3070.03010.95
5.2.00.2870.03010.75
5.1.60.2970.0209.99
5.1.50.3000.02710.09
5.1.40.2570.0239.90
5.1.30.2570.02310.33
5.1.20.2700.02010.46
5.1.10.2830.0279.94
5.1.00.2330.03010.14
5.0.50.0970.0339.66
5.0.40.1700.0209.66
5.0.30.1600.0309.66
5.0.20.1470.0209.66
5.0.10.1600.0209.66
5.0.00.1770.0279.66
4.4.90.1670.0179.66
4.4.80.1700.0179.66
4.4.70.1570.0209.66
4.4.60.1430.0139.66
4.4.50.1730.0179.66
4.4.40.1700.0279.66
4.4.30.1530.0179.66
4.4.20.1200.0179.66
4.4.10.1570.0179.66
4.4.00.1530.0209.66
4.3.110.1500.0139.66
4.3.100.1670.0139.66
4.3.90.1400.0139.66
4.3.80.1730.0309.66
4.3.70.1670.0179.66
4.3.60.1470.0109.66
4.3.50.1370.0179.66
4.3.40.1530.0279.66
4.3.30.0930.0209.66
4.3.20.0930.0239.66
4.3.10.0770.0179.66
4.3.00.0770.0139.66

preferences:
60.69 ms | 401 KiB | 5 Q