3v4l.org

run code in 300+ PHP versions simultaneously
<?php $itemList = array( array(0), array(1), array(0,1), array(0,1,2,3,4), array(new stdClass), array(new stdClass, new stdClass), array(new stdClass, new stdClass, new stdClass) ); function doCompare($a, $b) { if ($a === $b) { return 0; } elseif ($a > $b) { return 1; } return -1; }; foreach ($itemList as $item) { var_dump(array_udiff($item, $item, 'doCompare')); }

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.0100.00718.21
8.3.50.0150.00319.95
8.3.40.0040.01118.84
8.3.30.0070.00719.09
8.3.20.0040.00420.34
8.3.10.0040.00423.48
8.3.00.0080.00019.38
8.2.180.0060.00918.03
8.2.170.0060.00822.96
8.2.160.0070.00720.53
8.2.150.0050.00324.18
8.2.140.0090.00624.66
8.2.130.0100.00026.16
8.2.120.0080.00020.96
8.2.110.0030.00622.14
8.2.100.0070.00417.84
8.2.90.0040.00419.21
8.2.80.0050.00317.97
8.2.70.0000.00917.50
8.2.60.0050.00317.80
8.2.50.0030.00518.07
8.2.40.0050.00319.88
8.2.30.0000.00718.09
8.2.20.0000.00817.59
8.2.10.0030.00618.09
8.2.00.0000.00817.70
8.1.270.0060.00323.96
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0030.00623.80
8.1.230.0030.00719.10
8.1.220.0090.00017.74
8.1.210.0030.00518.77
8.1.200.0060.00317.22
8.1.190.0080.00017.35
8.1.180.0030.00618.10
8.1.170.0030.00518.66
8.1.160.0040.00422.01
8.1.150.0020.00518.87
8.1.140.0000.00717.35
8.1.130.0050.00217.77
8.1.120.0000.00717.51
8.1.110.0080.00017.49
8.1.100.0030.00717.49
8.1.90.0040.00417.43
8.1.80.0060.00317.52
8.1.70.0000.00717.45
8.1.60.0030.00517.49
8.1.50.0000.00817.54
8.1.40.0100.00017.53
8.1.30.0000.00817.54
8.1.20.0060.00317.69
8.1.10.0050.00317.57
8.1.00.0040.00417.39
8.0.300.0040.00418.77
8.0.290.0000.00716.63
8.0.280.0030.00318.43
8.0.270.0070.00017.20
8.0.260.0000.00617.29
8.0.250.0030.00316.94
8.0.240.0040.00416.88
8.0.230.0040.00416.89
8.0.220.0000.00816.87
8.0.210.0000.00716.92
8.0.200.0030.00316.97
8.0.190.0040.00416.99
8.0.180.0000.00816.99
8.0.170.0050.00316.93
8.0.160.0040.00416.80
8.0.150.0070.00016.82
8.0.140.0030.00416.74
8.0.130.0000.00513.34
8.0.120.0050.00316.82
8.0.110.0040.00416.91
8.0.100.0040.00416.92
8.0.90.0000.00716.95
8.0.80.0080.00816.88
8.0.70.0040.00416.89
8.0.60.0030.00516.86
8.0.50.0000.00816.91
8.0.30.0110.01416.95
8.0.20.0130.01017.40
8.0.10.0000.00717.14
8.0.00.0070.01116.77
7.4.330.0050.00015.03
7.4.320.0000.00616.54
7.4.300.0000.00716.66
7.4.290.0000.00716.50
7.4.280.0070.00016.61
7.4.270.0030.00316.40
7.4.260.0070.00016.54
7.4.250.0040.00416.58
7.4.240.0020.00516.55
7.4.230.0030.00316.56
7.4.220.0030.01516.67
7.4.210.0110.00416.62
7.4.200.0070.00016.53
7.4.160.0160.00016.55
7.4.150.0120.00617.40
7.4.140.0240.00817.86
7.4.130.0080.01116.59
7.4.120.0100.00716.51
7.4.110.0100.00716.56
7.4.100.0140.01116.58
7.4.90.0120.00616.57
7.4.80.0120.00419.39
7.4.70.0060.00916.55
7.4.60.0030.01616.62
7.4.50.0050.00016.30
7.4.40.0170.00316.28
7.4.30.0070.01716.43
7.4.00.0040.01414.63
7.3.330.0000.00613.34
7.3.320.0050.00013.36
7.3.310.0040.00416.43
7.3.300.0070.00016.38
7.3.290.0110.00316.46
7.3.280.0050.01016.43
7.3.270.0110.00817.40
7.3.260.0150.00316.60
7.3.250.0080.01316.47
7.3.240.0100.01016.63
7.3.230.0140.00316.42
7.3.210.0100.00616.51
7.3.200.0030.01319.39
7.3.190.0040.01316.34
7.3.180.0070.01016.49
7.3.170.0030.01316.38
7.3.160.0160.00016.37
7.3.00.0070.01016.41
7.2.330.0130.00416.38
7.2.320.0110.00716.80
7.2.310.0100.00716.72
7.2.300.0140.00616.79
7.2.290.0170.00716.81
7.2.130.0150.00516.92
7.2.120.0070.01416.86
7.2.110.0000.01417.00
7.2.100.0030.01316.95
7.2.90.0110.00716.75
7.2.80.0030.01216.73
7.2.70.0030.00616.95
7.2.60.0060.00816.94
7.2.50.0070.00316.79
7.2.40.0030.00716.68
7.2.30.0030.01216.98
7.2.20.0040.00816.93
7.2.10.0060.00916.66
7.2.00.0120.00316.95
7.1.250.0030.00915.68
7.1.240.0120.00015.51
7.1.230.0130.00715.86
7.1.220.0030.01015.38
7.1.210.0080.00615.95
7.1.200.0030.00915.72
7.1.190.0040.00715.49
7.1.180.0070.00715.63
7.1.170.0120.00615.47
7.1.160.0030.01315.56
7.1.150.0100.00315.38
7.1.140.0090.00015.59
7.1.130.0000.01015.59
7.1.120.0140.00015.79
7.1.110.0130.00315.72
7.1.100.0060.00616.92
7.1.90.0090.00515.77
7.1.80.0060.00915.91
7.1.70.0090.00516.26
7.1.60.0090.01117.58
7.1.50.0080.01316.44
7.1.40.0070.00715.66
7.1.30.0170.00415.73
7.1.20.0140.00415.47
7.1.10.0090.01215.42
7.1.00.0060.04219.10
7.0.330.0070.00615.51
7.0.320.0080.00815.22
7.0.310.0060.00615.29
7.0.300.0030.01315.23
7.0.290.0100.00615.42
7.0.280.0040.01315.37
7.0.270.0130.00015.28
7.0.260.0120.00415.01
7.0.250.0040.01115.63
7.0.240.0080.00415.32
7.0.230.0070.00315.57
7.0.220.0100.00315.40
7.0.210.0070.00715.19
7.0.200.0060.00416.12
7.0.190.0080.00815.21
7.0.180.0040.01315.47
7.0.170.0100.01015.45
7.0.160.0070.01515.53
7.0.150.0070.01115.15
7.0.140.0070.04118.54
7.0.130.0000.01215.45
7.0.120.0070.00515.36
7.0.110.0130.00615.20
7.0.100.0080.00615.44
7.0.90.0150.00415.35
7.0.80.0000.01015.28
7.0.70.0000.01115.34
7.0.60.0070.03417.53
7.0.50.0070.02316.53
7.0.40.0080.02216.69
7.0.30.0150.03116.65
7.0.20.0200.03416.87
7.0.10.0050.04516.86
7.0.00.0030.04316.83
5.6.380.0030.00914.36
5.6.370.0060.01214.01
5.6.360.0030.01014.12
5.6.350.0120.00014.26
5.6.340.0070.00714.04
5.6.330.0100.00314.28
5.6.320.0070.00714.00
5.6.310.0000.01514.41
5.6.300.0060.00814.41
5.6.290.0100.00714.29
5.6.280.0080.04117.77
5.6.270.0030.00614.27
5.6.260.0060.01114.12
5.6.250.0030.00614.45
5.6.240.0100.00314.26
5.6.230.0040.01114.17
5.6.220.0060.00614.23
5.6.210.0110.03317.35
5.6.200.0070.03516.11
5.6.190.0070.02517.28
5.6.180.0230.04017.54
5.6.170.0130.02317.44
5.6.160.0070.04517.31
5.6.150.0050.03016.09
5.6.140.0040.04616.32
5.6.130.0100.04216.45
5.6.120.0140.03817.66
5.6.110.0110.03817.50
5.6.100.0100.02017.57
5.6.90.0020.04117.67
5.6.80.0070.04317.22
5.6.70.0100.00714.38
5.6.60.0040.01114.16
5.6.50.0040.01314.20
5.6.40.0060.00613.88
5.6.30.0030.01013.95
5.6.20.0070.01314.08
5.6.10.0090.00913.87
5.6.00.0110.01114.39
5.5.380.0030.01011.18
5.5.370.0040.00411.18
5.5.360.0020.00711.32
5.5.350.0080.04115.81
5.5.340.0030.04714.62
5.5.330.0000.02915.88
5.5.320.1720.02015.74
5.5.310.0180.04315.74
5.5.300.0060.04314.67
5.5.290.0020.03314.56
5.5.280.0070.04316.04
5.5.270.0080.04115.98
5.5.260.0020.04516.02
5.5.250.0050.04615.84
5.5.240.0050.04515.76
5.5.230.0040.01111.18
5.5.220.0080.00411.18
5.5.210.0120.00011.18
5.5.200.0110.00311.18
5.5.190.0110.00411.18
5.5.180.0060.00611.18
5.5.170.0000.01111.18
5.5.160.0000.01011.18
5.5.150.0070.00311.18
5.5.140.0060.00611.18
5.5.130.0070.00711.18
5.5.120.0040.00811.18
5.5.110.0080.00011.18
5.5.100.0060.00611.18
5.5.90.0100.00311.18
5.5.80.0100.00311.18
5.5.70.0000.00711.18
5.5.60.0030.00911.18
5.5.50.0000.00611.20
5.5.40.0100.00311.18
5.5.30.0070.00011.18
5.5.20.0040.00711.18
5.5.10.0110.00011.18
5.5.00.0040.00411.18
5.4.450.0600.03015.32
5.4.440.0450.02615.22
5.4.430.0170.02815.36
5.4.420.0070.02915.37
5.4.410.0120.03215.06
5.4.400.0300.03714.97
5.4.390.0210.03214.96
5.4.380.0060.02914.99
5.4.370.0020.02714.85
5.4.360.0080.02714.98
5.4.350.0090.02011.60
5.4.340.0070.03311.60
5.4.330.0070.00411.18
5.4.320.0050.02011.84
5.4.310.0080.01911.84
5.4.300.0040.02411.84
5.4.290.0050.02211.84
5.4.280.0050.02111.79
5.4.270.0020.02311.79
5.4.260.0060.02011.79
5.4.250.0040.02111.79
5.4.240.0040.02211.79
5.4.230.0090.01811.78
5.4.220.0060.02211.79
5.4.210.0080.01911.78
5.4.200.0060.02011.78
5.4.190.0040.02411.78
5.4.180.0050.02111.78
5.4.170.0050.02111.79
5.4.160.0060.02111.78
5.4.150.0050.02211.78
5.4.140.0030.02211.62
5.4.130.0080.01711.62
5.4.120.0050.01911.60
5.4.110.0050.02011.59
5.4.100.0040.02211.59
5.4.90.0060.02111.59
5.4.80.0030.02111.60
5.4.70.0050.02211.59
5.4.60.0040.02511.59
5.4.50.0030.02111.59
5.4.40.0040.02211.58
5.4.30.0090.01711.58
5.4.20.0060.01911.58
5.4.10.0060.02011.58
5.4.00.0060.02011.33
5.3.290.0050.02311.99
5.3.280.0080.01811.94
5.3.270.0060.02011.95
5.3.260.0060.02111.95
5.3.250.0070.01811.95
5.3.240.0060.02011.95
5.3.230.0080.01911.94
5.3.220.0070.01811.93
5.3.210.0020.02411.93
5.3.200.0060.01811.93
5.3.190.0060.02511.93
5.3.180.0060.02411.92
5.3.170.0050.02311.92
5.3.160.0040.02411.93
5.3.150.0040.02511.93
5.3.140.0040.02211.92
5.3.130.0050.02211.92
5.3.120.0070.02111.92
5.3.110.0040.02411.92
5.3.100.0050.02211.65
5.3.90.0040.01911.64
5.3.80.0070.01911.63
5.3.70.0040.02211.63
5.3.60.0060.01911.63
5.3.50.0070.01911.60
5.3.40.0040.02311.60
5.3.30.0060.01911.58
5.3.20.0060.02011.47
5.3.10.0050.01911.45
5.3.00.0060.01911.45
5.2.170.0060.01710.20
5.2.160.0010.02110.20
5.2.150.0040.01910.20
5.2.140.0030.01910.20
5.2.130.0050.01910.18
5.2.120.0050.01810.18
5.2.110.0010.01910.18
5.2.100.0050.01710.18
5.2.90.0020.02010.18
5.2.80.0020.02010.18
5.2.70.0050.01510.18
5.2.60.0030.02010.15
5.2.50.0060.01710.13
5.2.40.0030.01810.13
5.2.30.0060.01610.11
5.2.20.0030.01710.11
5.2.10.0030.01810.06
5.2.00.0040.0159.99
5.1.60.0010.0179.63
5.1.50.0020.0169.63
5.1.40.0050.0129.62
5.1.30.0020.0179.79
5.1.20.0060.0129.81
5.1.10.0070.0149.67
5.1.00.0050.0189.67
5.0.50.0030.0138.91
5.0.40.0020.0118.84
5.0.30.0010.0208.75
5.0.20.0040.0118.73
5.0.10.0020.0148.72
5.0.00.0020.0198.72
4.4.90.0030.0137.98
4.4.80.0040.0077.96
4.4.70.0020.0107.97
4.4.60.0020.0087.96
4.4.50.0010.0117.97
4.4.40.0030.0167.94
4.4.30.0020.0127.97
4.4.20.0010.0118.01
4.4.10.0020.0128.01
4.4.00.0050.0117.97
4.3.110.0020.0107.92
4.3.100.0010.0107.92
4.3.90.0010.0097.90
4.3.80.0040.0137.88
4.3.70.0030.0087.90
4.3.60.0030.0127.90
4.3.50.0020.0097.90
4.3.40.0020.0157.86
4.3.30.0020.0107.25
4.3.20.0010.0117.23
4.3.10.0020.0107.21
4.3.00.0070.00713.40

preferences:
64.33 ms | 400 KiB | 5 Q