3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i = 0; $i < 100; $i++) { $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.0120.01216.49
8.3.50.0110.00722.85
8.3.40.0170.00018.92
8.3.30.0100.00719.21
8.3.20.0090.00020.20
8.3.10.0030.00623.48
8.3.00.0060.00317.50
8.2.180.0110.01116.50
8.2.170.0090.00922.96
8.2.160.0170.00320.35
8.2.150.0080.00024.18
8.2.140.0030.00624.66
8.2.130.0070.01026.16
8.2.120.0030.00620.90
8.2.110.0130.00622.12
8.2.100.0030.01017.81
8.2.90.0000.00819.26
8.2.80.0040.00417.97
8.2.70.0060.00317.38
8.2.60.0030.00517.93
8.2.50.0060.00318.07
8.2.40.0040.00418.02
8.2.30.0080.00318.00
8.2.20.0000.00817.80
8.2.10.0080.00018.14
8.2.00.0070.00317.69
8.1.280.0110.00825.92
8.1.270.0060.00323.97
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0080.00323.79
8.1.230.0000.01219.15
8.1.220.0070.00317.74
8.1.210.0000.00918.77
8.1.200.0070.00717.35
8.1.190.0000.00817.23
8.1.180.0030.00618.10
8.1.170.0030.00618.66
8.1.160.0030.00521.96
8.1.150.0060.00318.80
8.1.140.0050.00517.52
8.1.130.0000.00917.82
8.1.120.0040.00417.52
8.1.110.0000.00817.46
8.1.100.0000.00817.37
8.1.90.0080.00017.36
8.1.80.0030.00617.48
8.1.70.0000.00817.41
8.1.60.0030.00717.48
8.1.50.0090.00017.53
8.1.40.0040.00417.53
8.1.30.0060.00317.65
8.1.20.0040.00417.70
8.1.10.0080.00017.55
8.1.00.0030.00617.57
8.0.300.0080.00018.77
8.0.290.0000.00916.75
8.0.280.0030.00518.41
8.0.270.0030.00617.32
8.0.260.0040.00417.28
8.0.250.0040.00417.05
8.0.240.0060.00316.99
8.0.230.0030.00516.94
8.0.220.0000.00916.88
8.0.210.0070.00416.86
8.0.200.0030.00317.10
8.0.190.0060.00317.03
8.0.180.0040.00417.06
8.0.170.0040.00416.90
8.0.160.0000.00817.08
8.0.150.0000.00816.91
8.0.140.0040.00716.89
8.0.130.0030.00313.40
8.0.120.0030.00616.96
8.0.110.0000.00916.86
8.0.100.0040.00416.84
8.0.90.0030.00616.84
8.0.80.0070.01016.89
8.0.70.0050.00316.91
8.0.60.0080.00017.07
8.0.50.0000.00816.82
8.0.30.0100.01517.12
8.0.20.0110.01317.40
8.0.10.0030.00617.07
8.0.00.0130.00816.78
7.4.330.0060.00015.01
7.4.320.0070.00016.65
7.4.300.0000.00716.60
7.4.290.0050.00316.51
7.4.280.0070.00316.63
7.4.270.0070.00016.61
7.4.260.0040.00416.45
7.4.250.0000.00816.59
7.4.240.0020.00516.55
7.4.230.0040.00416.41
7.4.220.0100.01316.55
7.4.210.0060.00916.48
7.4.200.0050.00216.65
7.4.160.0130.00716.40
7.4.150.0120.00917.40
7.4.140.0130.01317.86
7.4.130.0120.01016.53
7.4.120.0140.00916.54
7.4.110.0120.00616.39
7.4.100.0130.00716.57
7.4.90.0090.01316.42
7.4.80.0100.01019.39
7.4.70.0110.00816.59
7.4.60.0030.01716.56
7.4.50.0050.00016.38
7.4.40.0070.01216.60
7.4.30.0160.01016.54
7.4.00.0060.00914.55
7.3.330.0040.00413.34
7.3.320.0040.00413.43
7.3.310.0080.00016.41
7.3.300.0000.00716.21
7.3.290.0070.01016.36
7.3.280.0060.01316.39
7.3.270.0130.01017.40
7.3.260.0120.00816.28
7.3.250.0130.00916.56
7.3.240.0140.01116.31
7.3.230.0170.00316.39
7.3.210.0110.01116.68
7.3.200.0130.01019.39
7.3.190.0170.01016.54
7.3.180.0110.00616.16
7.3.170.0070.01016.64
7.3.160.0160.00616.54
7.3.10.0090.00616.72
7.3.00.0160.00016.39
7.2.330.0100.01416.72
7.2.320.0110.01416.54
7.2.310.0040.01516.48
7.2.300.0120.00816.58
7.2.290.0060.01516.68
7.2.130.0070.01016.82
7.2.120.0120.00816.59
7.2.110.0080.00816.67
7.2.100.0070.00716.82
7.2.90.0070.00716.36
7.2.80.0120.00616.76
7.2.70.0070.00716.68
7.2.60.0020.01316.80
7.2.50.0040.01116.57
7.2.40.0030.01016.74
7.2.30.0130.00716.61
7.2.20.0120.00916.43
7.2.10.0150.00416.96
7.2.00.0060.00718.11
7.1.250.0070.00715.43
7.1.240.0040.00815.73
7.1.230.0140.00315.75
7.1.220.0040.01115.70
7.1.210.0100.00715.36
7.1.200.0050.00715.84
7.1.190.0070.00715.69
7.1.180.0080.00815.66
7.1.170.0070.00715.63
7.1.160.0090.00915.60
7.1.150.0040.01115.76
7.1.140.0100.01015.32
7.1.130.0100.00315.43
7.1.120.0070.01115.57
7.1.110.0070.01015.64
7.1.100.0080.00616.99
7.1.90.0040.01115.46
7.1.80.0030.01215.89
7.1.70.0040.00716.44
7.1.60.0090.01217.57
7.1.50.0070.01116.14
7.1.40.0060.00915.77
7.1.30.0140.00015.50
7.1.20.0030.01315.50
7.1.10.0110.00715.66
7.1.00.0120.03719.24
7.0.330.0100.00314.94
7.0.320.0070.00715.24
7.0.310.0100.00715.28
7.0.300.0080.00515.24
7.0.290.0130.00315.19
7.0.280.0100.00315.43
7.0.270.0070.01115.30
7.0.260.0100.01015.25
7.0.250.0140.00315.20
7.0.240.0060.00915.20
7.0.230.0130.00015.16
7.0.220.0100.00615.23
7.0.210.0090.00615.45
7.0.200.0140.01015.19
7.0.190.0110.00415.36
7.0.180.0090.00615.30
7.0.170.0070.00415.27
7.0.160.0110.00415.30
7.0.150.0090.00315.41
7.0.140.0080.04018.69
7.0.130.0040.00715.30
7.0.120.0110.00315.25
7.0.110.0110.00415.24
7.0.100.0030.01015.44
7.0.90.0070.01015.23
7.0.80.0070.00715.37
7.0.70.0070.00714.95
7.0.60.0120.04517.58
7.0.50.0050.04616.69
7.0.40.0070.03716.85
7.0.30.0210.04116.62
7.0.20.0150.03416.75
7.0.10.0130.04316.61
7.0.00.0100.01816.76
5.6.380.0000.01614.08
5.6.370.0100.00314.19
5.6.360.0140.00014.07
5.6.350.0080.00413.94
5.6.340.0080.00814.48
5.6.330.0070.00814.05
5.6.320.0000.01714.07
5.6.310.0030.01014.30
5.6.300.0060.00314.05
5.6.290.0030.00814.14
5.6.280.0070.04017.49
5.6.270.0040.01414.20
5.6.260.0080.00413.88
5.6.250.0060.00614.11
5.6.240.0080.00814.27
5.6.230.0000.01514.38
5.6.220.0000.01014.31
5.6.210.0030.03917.41
5.6.200.0080.02416.12
5.6.190.0070.04317.32
5.6.180.0200.03517.26
5.6.170.0150.03417.43
5.6.160.0030.04917.42
5.6.150.0070.03216.17
5.6.140.0130.03216.17
5.6.130.0070.04616.12
5.6.120.0100.04717.44
5.6.110.0100.02317.45
5.6.100.0030.03917.50
5.6.90.0080.03117.52
5.6.80.0090.03317.40
5.6.70.0080.00814.14
5.6.60.0000.01714.39
5.6.50.0130.00714.05
5.6.40.0040.01514.08
5.6.30.0000.01314.03
5.6.20.0060.01214.04
5.6.10.0050.00914.21
5.6.00.0100.00714.23
5.5.380.0070.00010.85
5.5.370.0060.00611.21
5.5.360.0120.00310.89
5.5.350.0050.04715.71
5.5.340.0050.03114.42
5.5.330.0070.02415.53
5.5.320.0250.04415.62
5.5.310.0170.03215.72
5.5.300.0050.04514.49
5.5.290.0080.03614.54
5.5.280.0040.04715.81
5.5.270.0050.04116.00
5.5.260.0050.04615.96
5.5.250.0040.03915.64
5.5.240.2170.02015.41
5.5.230.0030.01210.86
5.5.220.0080.00510.70
5.5.210.0030.00911.07
5.5.200.0080.00610.90
5.5.190.0030.00910.79
5.5.180.0070.00610.55
5.5.170.0130.00310.70
5.5.160.0030.00910.54
5.5.150.0080.00810.84
5.5.140.0070.00710.64
5.5.130.0000.01010.92
5.5.120.0100.00610.73
5.5.110.0050.00511.01
5.5.100.0030.01010.82
5.5.90.0080.00410.81
5.5.80.0030.01010.71
5.5.70.0130.00310.94
5.5.60.0060.00811.09
5.5.50.0070.00711.03
5.5.40.0080.00411.12
5.5.30.0060.00610.82
5.5.20.0090.00310.68
5.5.10.0080.00810.85
5.5.00.0000.01210.91
5.4.450.0300.02215.17
5.4.440.0210.03115.29
5.4.430.0240.02615.24
5.4.420.0170.03015.28
5.4.410.0410.02015.22
5.4.400.0200.02815.06
5.4.390.0340.02915.13
5.4.380.0130.03214.71
5.4.370.0410.03214.87
5.4.360.0550.03514.83
5.4.350.0110.03514.74
5.4.340.0170.03714.84
5.4.330.0030.01011.37
5.4.320.0080.02311.69
5.4.310.0060.02811.74
5.4.300.0050.02311.88
5.4.290.0050.02411.71
5.4.280.0070.02011.74
5.4.270.0040.02411.42
5.4.260.0040.02411.41
5.4.250.0070.02111.50
5.4.240.0040.02511.45
5.4.230.0050.02511.49
5.4.220.0050.02411.58
5.4.210.0050.02411.59
5.4.200.0020.02911.50
5.4.190.0080.02111.51
5.4.180.0060.02311.48
5.4.170.0070.02211.50
5.4.160.0060.02211.50
5.4.150.0060.02411.57
5.4.140.0020.02811.41
5.4.130.0070.02311.23
5.4.120.0070.02111.39
5.4.110.0100.01811.56
5.4.100.0040.02311.32
5.4.90.0050.02211.33
5.4.80.0030.02711.35
5.4.70.0070.02111.21
5.4.60.0030.02611.14
5.4.50.0050.02411.30
5.4.40.0060.02411.41
5.4.30.0050.02011.31
5.4.20.0040.02811.49
5.4.10.0090.02311.36
5.4.00.0060.02510.97
5.3.290.0050.02911.59
5.3.280.0040.02511.63
5.3.270.0060.02411.56
5.3.260.0030.02311.67
5.3.250.0040.02511.65
5.3.240.0040.02711.60
5.3.230.0070.02211.51
5.3.220.0020.02611.53
5.3.210.0050.02511.43
5.3.200.0070.02411.55
5.3.190.0080.02411.50
5.3.180.0050.02211.61
5.3.170.0050.02711.59
5.3.160.0080.02311.50
5.3.150.0060.02511.60
5.3.140.0070.02211.63
5.3.130.0060.02411.50
5.3.120.0060.02311.45
5.3.110.0080.01911.48
5.3.100.0080.02211.34
5.3.90.0020.02511.38
5.3.80.0060.02111.20
5.3.70.0110.01711.25
5.3.60.0060.02511.35
5.3.50.0020.02611.27
5.3.40.0060.02311.22
5.3.30.0060.02211.33
5.3.20.0070.02311.24
5.3.10.0070.02211.06
5.3.00.0020.02511.04
5.2.170.0050.0179.22
5.2.160.0090.0129.13
5.2.150.0040.0179.14
5.2.140.0050.0199.06
5.2.130.0060.0169.17
5.2.120.0020.0189.18
5.2.110.0040.0169.25
5.2.100.0060.0139.04
5.2.90.0050.0149.16
5.2.80.0020.0229.14
5.2.70.0050.0219.15
5.2.60.0020.0199.09
5.2.50.0020.0189.00
5.2.40.0040.0179.07
5.2.30.0060.0179.10
5.2.20.0020.0178.87
5.2.10.0060.0158.86
5.2.00.0050.0158.81
5.1.60.0010.0178.20
5.1.50.0020.0148.21
5.1.40.0020.0178.21
5.1.30.0020.0188.44
5.1.20.0030.0198.33
5.1.10.0040.0158.14
5.1.00.0020.0178.14
5.0.50.0060.0107.38
5.0.40.0020.0117.31
5.0.30.0040.0177.22
5.0.20.0050.0127.20
5.0.10.0050.0127.19
5.0.00.0060.0157.19
4.4.90.0010.0126.46
4.4.80.0040.0106.45
4.4.70.0040.0076.45
4.4.60.0040.0096.45
4.4.50.0030.0096.46
4.4.40.0020.0156.43
4.4.30.0010.0116.45
4.4.20.0020.0106.49
4.4.10.0040.0096.50
4.4.00.0030.0156.45
4.3.110.0020.0116.41
4.3.100.0030.0106.40
4.3.90.0030.0086.38
4.3.80.0010.0166.36
4.3.70.0040.0086.38
4.3.60.0050.0086.38
4.3.50.0020.0106.38
4.3.40.0040.0136.34
4.3.30.0030.0095.71
4.3.20.0030.0095.70
4.3.10.0030.0085.68
4.3.00.0020.01110.78

preferences:
69.69 ms | 401 KiB | 5 Q