3v4l.org

run code in 300+ PHP versions simultaneously
v<?php $items = array(array(1 => 1), array(2 => 2), array(1 => 1)); $items = array_filter($items, function($item) {static $seen; $serial = serialize($item); $retVal = !isset($seen[$serial]); $seen[$serial] = TRUE; return $retVal;}); var_dump($items);

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.0100.01018.43
8.3.60.0200.00016.50
8.3.50.0140.00522.01
8.3.40.0110.00418.63
8.3.30.0120.00319.09
8.3.20.0040.00420.21
8.3.10.0030.00620.52
8.3.00.0030.00619.38
8.2.180.0040.01816.63
8.2.170.0040.01122.96
8.2.160.0130.00720.43
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0080.00021.02
8.2.110.0060.00320.38
8.2.100.0030.00918.16
8.2.90.0040.00419.34
8.2.80.0040.00417.97
8.2.70.0060.00317.75
8.2.60.0060.00317.93
8.2.50.0000.00818.07
8.2.40.0080.00018.16
8.2.30.0040.00419.31
8.2.20.0000.00717.82
8.2.10.0000.00817.94
8.2.00.0080.00017.62
8.1.280.0170.00325.92
8.1.270.0050.00222.14
8.1.260.0000.00826.35
8.1.250.0030.00528.09
8.1.240.0030.00623.92
8.1.230.0070.00419.16
8.1.220.0040.00417.79
8.1.210.0030.00518.77
8.1.200.0000.01217.25
8.1.190.0000.00817.22
8.1.180.0050.00318.10
8.1.170.0040.00418.57
8.1.160.0040.00421.97
8.1.150.0070.00018.95
8.1.140.0000.00717.49
8.1.130.0080.00017.74
8.1.120.0040.00417.43
8.1.110.0040.00417.37
8.1.100.0030.00417.40
8.1.90.0040.00317.48
8.1.80.0000.00717.50
8.1.70.0070.00017.39
8.1.60.0090.00317.61
8.1.50.0040.00417.54
8.1.40.0040.00417.44
8.1.30.0030.00517.63
8.1.20.0000.00817.48
8.1.10.0000.00817.50
8.1.00.0040.00417.55
8.0.300.0000.00818.77
8.0.290.0080.00016.63
8.0.280.0030.00318.50
8.0.270.0050.00317.24
8.0.260.0030.00317.31
8.0.250.0050.00316.92
8.0.240.0000.00716.95
8.0.230.0070.00016.89
8.0.220.0070.00016.77
8.0.210.0020.00516.91
8.0.200.0040.00416.81
8.0.190.0040.00416.83
8.0.180.0040.00416.80
8.0.170.0030.00716.89
8.0.160.0040.00416.83
8.0.150.0000.00716.72
8.0.140.0030.00616.72
8.0.130.0030.00313.30
8.0.120.0000.00716.80
8.0.110.0000.00716.84
8.0.100.0000.00816.75
8.0.90.0040.00416.85
8.0.80.0040.01116.82
8.0.70.0040.00416.88
8.0.60.0000.00716.88
8.0.50.0040.00416.83
8.0.30.0080.01217.08
8.0.20.0130.00617.40
8.0.10.0000.00716.97
8.0.00.0140.01116.81
7.4.330.0050.00015.20
7.4.320.0030.00316.57
7.4.300.0000.00616.56
7.4.290.0070.00016.47
7.4.280.0070.00316.48
7.4.270.0070.00016.62
7.4.260.0040.00416.58
7.4.250.0040.00416.36
7.4.240.0070.00016.52
7.4.230.0000.00716.66
7.4.220.0150.00416.54
7.4.210.0070.00716.64
7.4.200.0030.00416.67
7.4.160.0080.00816.59
7.4.150.0150.00617.40
7.4.140.0080.01017.86
7.4.130.0070.01016.50
7.4.120.0060.01116.35
7.4.110.0060.01016.41
7.4.100.0130.00416.50
7.4.90.0060.01216.51
7.4.80.0150.00919.39
7.4.70.0000.01716.47
7.4.60.0080.01116.50
7.4.50.0040.00416.37
7.4.40.0100.00716.53
7.4.30.0090.00616.65
7.4.00.0100.00915.03
7.3.330.0000.00513.18
7.3.320.0050.00013.11
7.3.310.0030.00316.42
7.3.300.0000.00716.22
7.3.290.0080.00816.34
7.3.280.0100.00716.40
7.3.270.0060.01017.40
7.3.260.0070.01116.36
7.3.250.0150.00516.39
7.3.240.0120.00616.78
7.3.230.0110.00616.39
7.3.210.0070.01016.29
7.3.200.0090.01119.39
7.3.190.0040.01416.41
7.3.180.0140.00316.18
7.3.170.0060.01516.50
7.3.160.0080.00816.42
7.3.120.0140.00014.85
7.3.110.0030.01314.75
7.3.100.0000.01614.60
7.3.90.0030.00614.76
7.3.80.0080.00415.10
7.3.70.0090.00914.75
7.3.60.0090.00614.72
7.3.50.0000.01314.66
7.3.40.0100.00314.99
7.3.30.0090.00614.52
7.3.20.0060.00316.72
7.3.10.0090.00316.70
7.3.00.0000.01416.41
7.2.330.0060.01716.44
7.2.320.0090.00816.38
7.2.310.0030.01316.79
7.2.300.0130.00316.79
7.2.290.0100.00716.66
7.2.250.0000.01815.10
7.2.240.0030.01515.25
7.2.230.0120.00615.02
7.2.220.0030.00715.21
7.2.210.0060.00614.66
7.2.200.0030.01015.17
7.2.190.0030.01014.89
7.2.180.0090.00615.04
7.2.170.0090.00915.27
7.2.00.0000.01319.28
7.1.330.0120.00315.77
7.1.320.0040.01115.84
7.1.310.0030.00915.84
7.1.300.0040.01115.98
7.1.290.0070.00716.02
7.1.280.0090.00615.56
7.1.270.0000.01115.69
7.1.260.0060.00615.79
7.1.100.0040.00717.79
7.1.70.0020.00517.08
7.1.60.0140.01019.61
7.1.50.0250.01334.88
7.1.00.0030.07722.33
7.0.200.0040.00416.89
7.0.140.0030.07022.01
7.0.60.0070.07019.95
7.0.50.0030.04017.87
7.0.40.0030.08720.11
7.0.30.0430.05720.30
7.0.20.0300.04020.33
7.0.10.0030.08320.27
7.0.00.0130.04720.07
5.6.280.0000.07321.13
5.6.210.0230.06320.76
5.6.200.0070.06018.29
5.6.190.0100.03720.61
5.6.180.0270.04720.33
5.6.170.0300.07720.71
5.6.160.0130.07020.55
5.6.150.0130.06718.32
5.6.140.0100.07718.28
5.6.130.0100.03318.21
5.6.120.0100.06020.89
5.6.110.0070.07321.01
5.6.100.0100.06321.14
5.6.90.0130.08021.05
5.6.80.0100.07720.51
5.5.350.0100.05720.28
5.5.340.0000.07317.98
5.5.330.0130.07720.19
5.5.320.0100.06020.39
5.5.310.0230.06720.32
5.5.300.0070.04317.94
5.5.290.0100.05017.93
5.5.280.0170.05720.88
5.5.270.0200.04020.75
5.5.260.0030.09020.86
5.5.250.0170.06720.70
5.5.240.0070.08320.27
5.4.450.0500.05319.46
5.4.440.0930.04019.20
5.4.430.0170.05019.66
5.4.420.0100.05719.45
5.4.410.0200.06719.50
5.4.400.0200.05319.21
5.4.390.0130.08318.99
5.4.380.0430.05018.71
5.4.370.0300.06018.56
5.4.360.0200.06318.78
5.4.350.0370.05718.57
5.4.340.0300.05018.61
5.4.320.0080.03412.51
5.4.310.0070.03812.50
5.4.300.0070.03712.51
5.4.290.0060.03912.50
5.4.280.0060.03512.39
5.4.270.0060.03612.39
5.4.260.0060.03712.39
5.4.250.0060.03712.39
5.4.240.0050.03712.39
5.4.230.0060.03712.39
5.4.220.0060.03612.38
5.4.210.0060.03512.39
5.4.200.0080.03612.39
5.4.190.0060.03612.39
5.4.180.0030.03812.38
5.4.170.0100.03212.39
5.4.160.0060.03612.39
5.4.150.0100.03312.39
5.4.140.0080.03512.07
5.4.130.0060.03712.06
5.4.120.0050.03812.02
5.4.110.0080.03412.02
5.4.100.0070.03512.01
5.4.90.0080.03912.02
5.4.80.0080.03712.01
5.4.70.0070.03312.01
5.4.60.0050.03512.00
5.4.50.0070.03312.01
5.4.40.0090.03212.00
5.4.30.0050.03611.99
5.4.20.0070.03411.99
5.4.10.0080.03611.99
5.4.00.0110.04611.48
5.3.290.0050.05712.80
5.3.280.0140.05412.71
5.3.270.0100.04812.72
5.3.260.0070.04212.72
5.3.250.0070.03912.72
5.3.240.0060.04012.72
5.3.230.0120.04712.71
5.3.220.0100.05012.68
5.3.210.0100.04212.68
5.3.200.0070.03912.68
5.3.190.0060.03812.68
5.3.180.0080.03712.67
5.3.170.0080.04112.67
5.3.160.0130.04512.68
5.3.150.0100.03312.67
5.3.140.0050.03812.66
5.3.130.0060.04012.65
5.3.120.0090.03812.66
5.3.110.0050.04212.65
5.3.100.0060.04012.12
5.3.90.0040.03812.10
5.3.80.0050.04512.09
5.3.70.0050.04312.09
5.3.60.0100.04212.08
5.3.50.0130.03912.03
5.3.40.0070.03512.02
5.3.30.0040.03911.98
5.3.20.0070.03711.76
5.3.10.0090.04411.73
5.3.00.0130.04511.72
5.2.170.0030.0429.19
5.2.160.0070.0369.18
5.2.150.0070.0369.18
5.2.140.0100.0339.18
5.2.130.0060.0289.14
5.2.120.0080.0269.14
5.2.110.0030.0349.14
5.2.100.0140.0329.14
5.2.90.0110.0359.14
5.2.80.0040.0319.14
5.2.70.0010.0349.14
5.2.60.0040.0319.09
5.2.50.0050.0309.05
5.2.40.0040.0309.04
5.2.30.0080.0289.01
5.2.20.0040.0309.01
5.2.10.0060.0388.93
5.2.00.0050.0408.79
5.1.60.0040.0358.07
5.1.50.0040.0348.07
5.1.40.0110.0288.05
5.1.30.0080.0338.39
5.1.20.0050.0378.41
5.1.10.0040.0368.14
5.1.00.0020.0288.15
5.0.50.0040.0236.62
5.0.40.0020.0246.48
5.0.30.0070.0306.29
5.0.20.0080.0226.27
5.0.10.0030.0206.24
5.0.00.0040.0306.23
4.4.90.0020.0164.78
4.4.80.0020.0164.76
4.4.70.0030.0154.75
4.4.60.0030.0154.75
4.4.50.0020.0164.77
4.4.40.0010.0264.70
4.4.30.0030.0154.75
4.4.20.0040.0144.85
4.4.10.0020.0164.85
4.4.00.0020.0254.76
4.3.110.0050.0134.67
4.3.100.0060.0124.66
4.3.90.0030.0144.63
4.3.80.0000.0284.58
4.3.70.0030.0144.63
4.3.60.0030.0144.63
4.3.50.0040.0154.63
4.3.40.0020.0254.54
4.3.30.0020.0163.28
4.3.20.0030.0153.25
4.3.10.0020.0163.22
4.3.00.0000.01713.57

preferences:
55.88 ms | 401 KiB | 5 Q