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);

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.0060.01218.39
8.3.50.0100.01022.98
8.3.40.0120.00318.73
8.3.30.0100.00719.07
8.3.20.0070.00020.38
8.3.10.0040.00423.61
8.3.00.0040.00417.50
8.2.180.0090.00616.50
8.2.170.0100.00722.96
8.2.160.0070.00720.35
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0080.00020.97
8.2.110.0060.00322.25
8.2.100.0130.00017.84
8.2.90.0050.00219.25
8.2.80.0000.00817.97
8.2.70.0030.00617.38
8.2.60.0040.00417.80
8.2.50.0030.00518.07
8.2.40.0000.00718.09
8.2.30.0070.00417.88
8.2.20.0000.00717.69
8.2.10.0040.00418.03
8.2.00.0030.00617.73
8.1.280.0150.00425.92
8.1.270.0100.00723.96
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00623.88
8.1.230.0030.00919.15
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0130.00017.23
8.1.190.0000.00817.00
8.1.180.0000.00818.10
8.1.170.0030.00618.57
8.1.160.0000.00722.01
8.1.150.0000.00718.92
8.1.140.0040.00417.50
8.1.130.0000.00717.86
8.1.120.0020.00517.38
8.1.110.0000.00717.51
8.1.100.0050.00217.43
8.1.90.0000.00717.36
8.1.80.0040.00417.45
8.1.70.0000.00717.40
8.1.60.0040.00417.51
8.1.50.0000.00817.52
8.1.40.0040.00417.45
8.1.30.0040.00417.64
8.1.20.0050.00217.71
8.1.10.0040.00417.58
8.1.00.0070.00017.49
8.0.300.0060.00318.77
8.0.290.0050.00316.75
8.0.280.0030.00318.36
8.0.270.0070.00017.12
8.0.260.0060.00017.37
8.0.250.0030.00317.01
8.0.240.0080.00016.96
8.0.230.0030.00316.92
8.0.220.0000.00716.92
8.0.210.0080.00316.99
8.0.200.0030.00316.93
8.0.190.0000.00816.93
8.0.180.0000.00716.99
8.0.170.0040.00416.95
8.0.160.0030.00316.92
8.0.150.0000.00716.88
8.0.140.0070.00016.97
8.0.130.0030.00313.42
8.0.120.0030.00616.92
8.0.110.0040.00416.79
8.0.100.0040.00416.95
8.0.90.0080.00016.87
8.0.80.0070.01416.99
8.0.70.0070.00016.77
8.0.60.0080.00017.00
8.0.50.0070.00016.82
8.0.30.0080.01217.30
8.0.20.0130.00617.40
8.0.10.0040.00417.02
8.0.00.0060.01116.94
7.4.330.0030.00315.00
7.4.320.0000.00716.46
7.4.300.0030.00316.59
7.4.290.0030.00316.64
7.4.280.0040.00416.59
7.4.270.0070.00016.44
7.4.260.0050.00316.48
7.4.250.0000.00716.55
7.4.240.0010.00616.48
7.4.230.0030.00316.63
7.4.220.0120.00616.67
7.4.210.0000.02016.63
7.4.200.0070.00016.68
7.4.160.0090.00616.47
7.4.150.0110.00717.40
7.4.140.0090.01217.86
7.4.130.0130.00616.44
7.4.120.0110.00916.37
7.4.110.0000.01716.55
7.4.100.0080.00916.50
7.4.90.0070.01416.30
7.4.80.0120.01219.39
7.4.70.0110.00816.48
7.4.60.0060.01216.46
7.4.50.0060.00316.43
7.4.40.0100.00616.46
7.4.30.0120.00616.64
7.4.00.0130.00315.02
7.3.330.0030.00313.27
7.3.320.0000.00513.22
7.3.310.0050.00216.34
7.3.300.0030.00316.31
7.3.290.0000.01316.32
7.3.280.0100.00616.31
7.3.270.0390.01317.40
7.3.260.0090.00916.39
7.3.250.0120.00716.42
7.3.240.0050.01316.32
7.3.230.0110.00616.39
7.3.210.0060.01316.36
7.3.200.0160.00619.39
7.3.190.0080.00816.34
7.3.180.0100.01016.23
7.3.170.0080.01116.33
7.3.160.0160.00016.46
7.2.330.0150.00316.63
7.2.320.0030.01416.52
7.2.310.0080.01116.49
7.2.300.0140.00716.74
7.2.290.0140.00316.56
7.2.60.0070.00716.93
7.2.00.0000.01419.46
7.1.200.0090.00315.83
7.1.100.0000.01117.73
7.1.70.0060.01017.03
7.1.60.0190.00619.40
7.1.50.0040.01917.04
7.1.00.0000.07722.43
7.0.200.0350.00314.86
7.0.140.0070.06722.09
7.0.70.0000.09021.64
7.0.60.0000.08321.73
7.0.50.0030.08022.00
7.0.40.0000.08720.07
7.0.30.0000.04320.00
7.0.20.0030.07320.13
7.0.10.0030.05019.99
7.0.00.0030.04320.14
5.6.280.0000.07720.86
5.6.220.0000.08320.62
5.6.210.0030.07020.45
5.6.200.0070.06721.02
5.6.190.0070.07721.03
5.6.180.0030.07020.93
5.6.170.0100.07721.11
5.6.160.0070.07721.02
5.6.150.0000.07020.94
5.6.140.0030.05021.09
5.6.130.0100.08321.04
5.6.120.0000.05321.17
5.6.110.0070.08720.96
5.6.100.0070.08720.94
5.6.90.0130.06321.13
5.6.80.0030.07320.41
5.6.70.0000.05720.51
5.6.60.0030.03720.45
5.6.50.0000.04320.52
5.6.40.0030.05720.43
5.6.30.0030.04020.48
5.6.20.0030.03720.32
5.6.10.0030.03720.41
5.6.00.0000.04020.28
5.5.360.0030.07720.55
5.5.350.0000.08320.46
5.5.340.0030.05020.86
5.5.330.0030.09020.65
5.5.320.0070.08020.93
5.5.310.0100.07320.77
5.5.300.0100.03720.91
5.5.290.0070.06020.93
5.5.280.0000.05720.73
5.5.270.0100.06720.75
5.5.260.0030.06020.88
5.5.250.0030.07720.74
5.5.240.0000.08720.30
5.5.230.0030.04720.21
5.5.220.0000.04320.21
5.5.210.0070.03720.16
5.5.200.0000.04320.25
5.5.190.0000.04720.20
5.5.180.0030.07020.22
5.5.160.0070.03320.25
5.5.150.0030.03720.27
5.5.140.0030.07320.08
5.5.130.0070.08020.15
5.5.120.0070.07720.15
5.5.110.0000.04020.22
5.5.100.0070.06320.18
5.5.90.0070.06720.14
5.5.80.0030.04020.16
5.5.70.0000.05320.12
5.5.60.0030.03720.06
5.5.50.0070.03720.15
5.5.40.0000.07320.08
5.5.30.0000.05020.05
5.5.20.0030.03719.96
5.5.10.0000.04019.98
5.5.00.0100.03020.07
5.4.450.0100.07319.37
5.4.440.0070.06319.53
5.4.430.0070.08019.53
5.4.420.0030.08019.18
5.4.410.0030.08319.35
5.4.400.0000.05719.18
5.4.390.0000.08018.88
5.4.380.0030.03719.23
5.4.370.0030.03319.23
5.4.360.0030.04319.03
5.4.350.0030.03719.03
5.4.340.0030.03719.22
5.4.320.0000.04019.03
5.4.310.0000.08019.03
5.4.300.0030.04719.13
5.4.290.0000.04019.03
5.4.280.0070.07719.02
5.4.270.0070.04019.03
5.4.260.0030.04719.04
5.4.250.0030.04018.93
5.4.240.0000.04019.02
5.4.230.0070.03719.11
5.4.220.0030.05019.02
5.4.210.0030.03719.15
5.4.200.0000.04019.20
5.4.190.0000.04019.02
5.4.180.0070.07719.20
5.4.170.0000.04019.22
5.4.160.0070.04318.94
5.4.150.0000.03718.85
5.4.140.0030.03316.44
5.4.130.0030.03316.18
5.4.120.0000.03716.43
5.4.110.0000.04716.49
5.4.100.0030.03316.34
5.4.90.0000.06716.36
5.4.80.0030.03316.49
5.4.70.0030.06016.38
5.4.60.0000.03716.48
5.4.50.0030.04716.34
5.4.40.0000.07016.51
5.4.30.0000.03016.38
5.4.20.0000.03016.24
5.4.10.0030.05716.48
5.4.00.0000.05715.88
5.3.290.0000.04014.76
5.3.280.0030.04014.61
5.3.270.0070.04014.55
5.3.260.0000.03714.50
5.3.250.0030.03314.55
5.3.240.0030.03314.54
5.3.230.0030.06714.57
5.3.220.0000.03014.59
5.3.210.0000.06014.50
5.3.200.0030.03714.58
5.3.190.0000.04314.64
5.3.180.0000.08014.65
5.3.170.0030.03314.56
5.3.160.0030.06314.57
5.3.150.0000.03014.56
5.3.140.0000.03714.68
5.3.130.0000.04314.56
5.3.120.0030.03014.66
5.3.110.0030.03714.67
5.3.100.0070.03314.00
5.3.90.0000.07314.00
5.3.80.0030.07014.10
5.3.70.0030.07714.11
5.3.60.0070.06714.09
5.3.50.0030.06313.97
5.3.40.0070.06713.92
5.3.30.0030.07714.04
5.3.20.0030.06013.63
5.3.10.0070.07013.64
5.3.00.0030.07013.69
5.2.170.0030.06011.14
5.2.160.0030.05311.19
5.2.150.0030.06710.96
5.2.140.0030.06711.18
5.2.130.0030.04010.91
5.2.120.0070.06011.14
5.2.110.0070.06010.94
5.2.100.0070.05311.16
5.2.90.0070.05710.95
5.2.80.0100.06010.91
5.2.70.0030.06311.04
5.2.60.0030.06010.89
5.2.50.0070.06011.09
5.2.40.0030.06011.02
5.2.30.0030.05310.95
5.2.20.0070.05310.93
5.2.10.0030.06010.79
5.2.00.0000.06010.76
5.1.60.0030.05310.63
5.1.50.0030.05010.63
5.1.40.0000.04710.63
5.1.30.0070.04310.63
5.1.20.0030.06010.63
5.1.10.0070.03010.63
5.1.00.0070.05310.63
5.0.50.0030.04310.63
5.0.40.0000.05010.63
5.0.30.0000.06310.63
5.0.20.0000.04710.63
5.0.10.0000.04710.63
5.0.00.0000.05710.63
4.4.90.0000.03710.63
4.4.80.0030.03010.63
4.4.70.0030.03310.63
4.4.60.0100.02710.63
4.4.50.0000.03710.63
4.4.40.0000.05710.63
4.4.30.0030.03010.63
4.4.20.0030.03010.63
4.4.10.0070.03310.63
4.4.00.0030.04710.63
4.3.110.0030.03310.63
4.3.100.0030.03310.63
4.3.90.0000.04010.63
4.3.80.0000.05710.63
4.3.70.0030.02310.63
4.3.60.0000.03310.63
4.3.50.0030.03310.63
4.3.40.0000.05010.63
4.3.30.0000.03710.63
4.3.20.0000.03710.63
4.3.10.0000.04010.63
4.3.00.0000.02710.63

preferences:
52.41 ms | 401 KiB | 5 Q