3v4l.org

run code in 300+ PHP versions simultaneously
<?php $items = array(new \stdClass(), new \stdClass()); $compare = function ($a, $b) { return $a === $b; }; $udiff = array_udiff($items, $items, $compare); var_dump($udiff); array_unshift($items, new stdClass()); $udiff = array_udiff($items, $items, $compare); var_dump($udiff); $udiff = array_udiff($items, $items, $compare); var_dump($udiff);

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.0150.00618.43
8.3.50.0100.00822.72
8.3.40.0100.00718.64
8.3.30.0030.01319.27
8.3.20.0080.00020.34
8.3.10.0040.00423.54
8.3.00.0050.00319.51
8.2.180.0110.00416.63
8.2.170.0060.01022.96
8.2.160.0030.01420.39
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00321.04
8.2.110.0060.00322.20
8.2.100.0090.00317.76
8.2.90.0020.00519.30
8.2.80.0050.00317.97
8.2.70.0060.00317.50
8.2.60.0000.00817.93
8.2.50.0030.00618.07
8.2.40.0040.00419.78
8.2.30.0000.00918.18
8.2.20.0070.00017.59
8.2.10.0070.00017.95
8.2.00.0000.00717.79
8.1.280.0110.00425.92
8.1.270.0050.00323.96
8.1.260.0030.00726.35
8.1.250.0000.00828.09
8.1.240.0040.00423.73
8.1.230.0090.00319.08
8.1.220.0070.00017.74
8.1.210.0030.00518.77
8.1.200.0090.00317.10
8.1.190.0000.00817.35
8.1.180.0090.00018.10
8.1.170.0040.00418.72
8.1.160.0030.00522.04
8.1.150.0070.00018.90
8.1.140.0070.00017.39
8.1.130.0000.00717.87
8.1.120.0000.00717.42
8.1.110.0040.00417.37
8.1.100.0040.00417.45
8.1.90.0030.00417.47
8.1.80.0040.00417.48
8.1.70.0000.00717.48
8.1.60.0030.00517.59
8.1.50.0000.00817.48
8.1.40.0050.00217.50
8.1.30.0060.00317.57
8.1.20.0070.00317.61
8.1.10.0050.00317.62
8.1.00.0040.00417.46
8.0.300.0070.00018.77
8.0.290.0090.00016.75
8.0.280.0030.00518.39
8.0.270.0030.00317.32
8.0.260.0060.00017.28
8.0.250.0000.00717.00
8.0.240.0050.00516.88
8.0.230.0030.00316.96
8.0.220.0030.00316.88
8.0.210.0080.00316.86
8.0.200.0030.00316.97
8.0.190.0050.00516.98
8.0.180.0030.00416.88
8.0.170.0000.00716.88
8.0.160.0050.00316.97
8.0.150.0000.00716.81
8.0.140.0000.00716.83
8.0.130.0030.00313.39
8.0.120.0030.00516.95
8.0.110.0060.00316.89
8.0.100.0040.00417.00
8.0.90.0030.00516.93
8.0.80.0090.00616.98
8.0.70.0040.00417.03
8.0.60.0000.00716.84
8.0.50.0000.00716.94
8.0.30.0110.00917.05
8.0.20.0120.00617.40
8.0.10.0050.00317.13
8.0.00.0110.00716.85
7.4.330.0000.00515.00
7.4.320.0000.00616.59
7.4.300.0070.00016.53
7.4.290.0030.00316.54
7.4.280.0040.00416.65
7.4.270.0070.00016.54
7.4.260.0020.00516.50
7.4.250.0050.00216.59
7.4.240.0050.00216.49
7.4.230.0070.00016.72
7.4.220.0040.01516.72
7.4.210.0120.00316.51
7.4.200.0000.00716.41
7.4.160.0050.01316.66
7.4.150.0070.01117.40
7.4.140.0090.01417.86
7.4.130.0120.00816.58
7.4.120.0080.01116.45
7.4.110.0110.00616.60
7.4.100.0070.01516.54
7.4.90.0040.01216.49
7.4.80.0060.01219.39
7.4.70.0060.01416.65
7.4.60.0070.01016.49
7.4.50.0050.00016.38
7.4.40.0120.00316.57
7.4.30.0130.00516.56
7.4.00.0080.00615.20
7.3.330.0000.00613.18
7.3.320.0000.00613.32
7.3.310.0000.00716.40
7.3.300.0070.00016.30
7.3.290.0030.01016.34
7.3.280.0120.00416.29
7.3.270.0030.01617.40
7.3.260.0140.00316.60
7.3.250.0110.00916.54
7.3.240.0090.00916.29
7.3.230.0130.00316.57
7.3.210.0080.00916.51
7.3.200.0140.00519.39
7.3.190.0030.01816.55
7.3.180.0030.01316.18
7.3.170.0100.00716.27
7.3.160.0060.01016.31
7.3.10.0000.01816.34
7.3.00.0040.00816.47
7.2.330.0090.00916.48
7.2.320.0160.00316.75
7.2.310.0110.00616.67
7.2.300.0090.00916.70
7.2.290.0100.00716.67
7.2.130.0080.00816.78
7.2.120.0070.01116.55
7.2.110.0000.01016.74
7.2.100.0030.01016.68
7.2.90.0070.00716.48
7.2.80.0110.00716.86
7.2.70.0060.01316.21
7.2.60.0100.00616.63
7.2.50.0060.01016.73
7.2.40.0060.00916.85
7.2.30.0070.00716.82
7.2.20.0030.00916.30
7.2.10.0060.00916.54
7.2.00.0020.01317.87
7.1.250.0080.00815.28
7.1.200.0000.01315.90
7.1.100.0030.00918.26
7.1.70.0000.01117.21
7.1.60.0100.01619.40
7.1.50.0060.01316.79
7.1.00.0030.07722.44
7.0.200.1010.00314.93
7.0.140.0030.07022.12
7.0.60.0070.04019.85
7.0.50.0000.05017.86
7.0.40.0130.07720.13
7.0.30.0330.07020.13
7.0.20.0270.08720.08
7.0.10.0100.08720.12
7.0.00.0100.06020.21
5.6.280.0000.07720.91
5.6.210.0070.08020.77
5.6.200.0030.08318.15
5.6.190.0030.09320.68
5.6.180.0330.06020.54
5.6.170.0130.04720.62
5.6.160.0030.06720.50
5.6.150.0070.08018.18
5.6.140.0070.06018.18
5.6.130.0130.03018.11
5.6.120.0130.07721.12
5.6.110.0030.05321.00
5.6.100.0130.08020.96
5.6.90.0100.09021.12
5.6.80.0070.04720.38
5.5.350.0100.07320.47
5.5.340.0070.03318.04
5.5.330.0070.04020.37
5.5.320.0100.08020.24
5.5.310.0200.03720.24
5.5.300.0030.06017.92
5.5.290.0100.08318.07
5.5.280.0130.07720.88
5.5.270.0100.05720.88
5.5.260.0100.07720.97
5.5.250.0030.06020.61
5.5.240.0130.03320.07
5.4.450.0230.05319.57
5.4.440.0300.03719.30
5.4.430.0300.04719.42
5.4.420.0270.04719.48
5.4.410.0230.06319.18
5.4.400.0200.04319.04
5.4.390.0300.04319.14
5.4.380.0330.06719.09
5.4.370.0230.04318.83
5.4.360.0230.03319.30
5.4.350.0130.04319.23
5.4.340.0470.06718.84
5.4.320.0230.04719.16
5.4.310.0230.03718.84
5.4.300.0170.04319.21
5.4.290.0230.04319.17
5.4.280.0270.07719.13
5.4.270.0330.03319.07
5.4.260.0130.04018.86
5.4.250.0200.03319.19
5.4.240.0200.03319.08
5.4.230.0200.03318.91
5.4.220.0370.07718.83
5.4.210.0200.07018.98
5.4.200.0270.05318.86
5.4.190.0170.03719.06
5.4.180.0170.03718.84
5.4.170.0170.03719.29
5.4.160.0130.05018.97
5.4.150.0130.04018.92
5.4.140.0170.03316.38
5.4.130.0100.04716.52
5.4.120.0330.03016.50
5.4.110.0170.05316.54
5.4.100.0270.03316.45
5.4.90.0070.04316.54
5.4.80.0200.04316.38
5.4.70.0130.03716.34
5.4.60.0200.03716.51
5.4.50.0230.04016.35
5.4.40.0170.03716.53
5.4.30.0170.06016.25
5.4.20.0230.04016.37
5.4.10.0200.04316.37
5.4.00.0230.04015.81
5.3.290.0230.05014.63
5.3.280.0130.06714.57
5.3.270.0170.04014.59
5.3.260.0230.04714.68
5.3.250.0400.07014.82
5.3.240.0230.03014.62
5.3.230.0200.03014.69
5.3.220.0200.03314.64
5.3.210.0200.03314.48
5.3.200.0170.03714.55
5.3.190.0130.04014.57
5.3.180.0170.03314.46
5.3.170.0130.04314.54
5.3.160.0170.03714.71
5.3.150.0170.03714.64
5.3.140.0170.03714.57
5.3.130.0230.05714.45
5.3.120.0170.04314.63
5.3.110.0200.03714.52
5.3.100.0270.05014.11
5.3.90.0130.03714.01
5.3.80.0170.03314.03
5.3.70.0230.04714.16
5.3.60.0300.05714.01
5.3.50.0170.06013.95
5.3.40.0230.04714.00
5.3.30.0100.04313.96
5.3.20.0130.04013.80
5.3.10.0230.03713.58
5.3.00.0300.04013.69
5.2.170.0130.04011.00
5.2.160.0500.04710.99
5.2.150.0170.06011.19
5.2.140.0330.03311.19
5.2.130.0170.04011.11
5.2.120.0200.05010.96
5.2.110.0170.03010.98
5.2.100.0170.06010.96
5.2.90.0170.04710.96
5.2.80.0300.05310.94
5.2.70.0130.04010.98
5.2.60.0170.02710.89
5.2.50.0100.05311.03
5.2.40.0230.02710.85
5.2.30.0100.05710.88
5.2.20.0130.02710.98
5.2.10.0170.06010.76
5.2.00.0170.02710.60
5.1.60.0170.01710.17
5.1.50.0100.0539.86
5.1.40.0170.0309.86
5.1.30.0130.03010.24
5.1.20.0100.02710.26
5.1.10.0170.05010.05
5.1.00.0230.04310.18
5.0.50.0070.0478.45
5.0.40.0100.0178.53
5.0.30.0100.0638.10
5.0.20.0130.0308.35
5.0.10.0100.0238.39
5.0.00.0030.0338.08
4.4.90.0070.0137.64
4.4.80.0130.0307.64
4.4.70.0070.0137.64
4.4.60.0070.0307.64
4.4.50.0100.0337.64
4.4.40.0100.0577.64
4.4.30.0170.0277.64
4.4.20.0070.0277.64
4.4.10.0100.0177.64
4.4.00.0070.0607.64
4.3.110.0100.0337.64
4.3.100.0070.0377.64
4.3.90.0070.0307.64
4.3.80.0100.0437.64
4.3.70.0070.0277.64
4.3.60.0130.0277.64
4.3.50.0100.0237.64
4.3.40.0070.0307.64
4.3.30.0000.0237.64
4.3.20.0000.0377.64
4.3.10.0030.0337.64
4.3.00.0070.0277.64

preferences:
42.21 ms | 401 KiB | 5 Q