3v4l.org

run code in 300+ PHP versions simultaneously
<?php $itemList = array( array(new stdClass), array(new stdClass, new stdClass), array(new stdClass, new stdClass, new stdClass), array(new stdClass, new stdClass, new stdClass, new stdClass) ); function doCompare($a, $b) { return ($a === $b) ? 0 : 1; }; foreach ($itemList as $item) { echo 'Comparing: '; var_dump($item); var_dump(array_udiff($item, $item, 'doCompare')); echo "\n\n"; }

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.0070.01418.30
8.3.50.0130.00522.90
8.3.40.0070.00718.75
8.3.30.0090.00619.01
8.3.20.0000.00720.16
8.3.10.0070.00023.66
8.3.00.0000.00819.25
8.2.180.0100.01316.75
8.2.170.0070.01422.96
8.2.160.0120.00320.46
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0030.00520.97
8.2.110.0030.00622.26
8.2.100.0060.00618.03
8.2.90.0060.00319.10
8.2.80.0060.00317.97
8.2.70.0070.00417.37
8.2.60.0000.00817.92
8.2.50.0040.00418.07
8.2.40.0040.00420.07
8.2.30.0000.00819.75
8.2.20.0030.00617.74
8.2.10.0070.00017.99
8.2.00.0000.00917.68
8.1.280.0110.01125.92
8.1.270.0080.00023.79
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0120.00623.87
8.1.230.0070.00419.03
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0070.00317.25
8.1.190.0050.00517.35
8.1.180.0040.00418.10
8.1.170.0060.00318.65
8.1.160.0000.00821.94
8.1.150.0000.00718.82
8.1.140.0000.00717.37
8.1.130.0060.00317.74
8.1.120.0040.00417.47
8.1.110.0030.00617.35
8.1.100.0090.00317.44
8.1.90.0030.00417.45
8.1.80.0050.00517.54
8.1.70.0070.00017.48
8.1.60.0030.00617.48
8.1.50.0000.00817.49
8.1.40.0060.00317.51
8.1.30.0030.00617.56
8.1.20.0020.00517.56
8.1.10.0030.00517.55
8.1.00.0040.00417.53
8.0.300.0030.00518.77
8.0.290.0040.00416.75
8.0.280.0070.00018.46
8.0.270.0000.00817.29
8.0.260.0070.00017.24
8.0.250.0030.00316.97
8.0.240.0070.00016.87
8.0.230.0000.00716.97
8.0.220.0070.00016.91
8.0.210.0000.00716.78
8.0.200.0000.00717.00
8.0.190.0040.00316.93
8.0.180.0030.00316.89
8.0.170.0030.00616.80
8.0.160.0040.00416.95
8.0.150.0000.00816.85
8.0.140.0000.00716.72
8.0.130.0060.00013.34
8.0.120.0000.00816.80
8.0.110.0080.00016.89
8.0.100.0070.00016.89
8.0.90.0040.00416.90
8.0.80.0040.01616.86
8.0.70.0040.00417.01
8.0.60.0050.00316.86
8.0.50.0060.00316.93
8.0.30.0120.00917.20
8.0.20.0120.00817.40
8.0.10.0000.00716.99
8.0.00.0110.00716.69
7.4.330.0000.00515.14
7.4.320.0030.00316.62
7.4.300.0070.00016.46
7.4.290.0030.00316.38
7.4.280.0040.00416.53
7.4.270.0020.00516.55
7.4.260.0030.00616.61
7.4.250.0000.00816.62
7.4.240.0050.00216.56
7.4.230.0070.00016.52
7.4.220.0030.01416.70
7.4.210.0070.00916.58
7.4.200.0040.00416.36
7.4.160.0070.01016.41
7.4.150.0080.01217.40
7.4.140.0050.01217.86
7.4.130.0080.00916.50
7.4.120.0060.01216.47
7.4.110.0060.01116.49
7.4.100.0030.02116.38
7.4.90.0040.01416.52
7.4.80.0100.01219.39
7.4.70.0090.00816.48
7.4.60.0110.00716.57
7.4.50.0020.00216.58
7.4.40.0090.00916.35
7.4.30.0150.00316.43
7.4.00.0080.00014.79
7.3.330.0060.00013.32
7.3.320.0050.00013.21
7.3.310.0040.00416.40
7.3.300.0070.00016.21
7.3.290.0070.01116.35
7.3.280.0100.00616.36
7.3.270.0090.00917.40
7.3.260.0100.01016.54
7.3.250.0100.00716.47
7.3.240.0100.01316.48
7.3.230.0100.00716.39
7.3.210.0080.01516.41
7.3.200.0090.00919.39
7.3.190.0090.01416.48
7.3.180.0170.00316.53
7.3.170.0040.01116.43
7.3.160.0110.00516.52
7.2.330.0060.01116.63
7.2.320.0110.00716.73
7.2.310.0050.01116.85
7.2.300.0090.00916.78
7.2.290.0100.01316.40
7.2.00.0000.01119.25
7.1.100.0040.00818.30
7.1.70.0030.00517.27
7.1.60.0030.02119.40
7.1.50.0070.01316.77
7.1.00.0030.07722.31
7.0.200.0040.00416.71
7.0.140.0100.06721.92
7.0.60.0130.07020.00
7.0.50.0070.08017.98
7.0.40.0030.07020.11
7.0.30.0400.07020.21
7.0.20.0270.04320.19
7.0.10.0030.05720.08
7.0.00.0170.07720.23
5.6.280.0030.07321.03
5.6.210.0130.07020.61
5.6.200.0100.07318.19
5.6.190.0030.05720.39
5.6.180.0300.05320.77
5.6.170.0330.05020.44
5.6.160.0070.08720.55
5.6.150.0070.08318.25
5.6.140.0030.04318.14
5.6.130.0000.04318.29
5.6.120.0070.08021.00
5.6.110.0100.04320.96
5.6.100.0130.07721.01
5.6.90.0300.06021.02
5.6.80.0030.04020.38
5.5.350.0200.07020.34
5.5.340.0070.05318.09
5.5.330.0030.04320.29
5.5.320.0070.05020.42
5.5.310.0200.04020.34
5.5.300.0030.08018.03
5.5.290.0030.07317.92
5.5.280.0170.07720.88
5.5.270.0000.04720.79
5.5.260.0070.08720.84
5.5.250.0070.08020.68
5.5.240.0000.08020.26
5.4.450.0130.05019.31
5.4.440.0170.04019.50
5.4.430.0200.05319.41
5.4.420.0300.06019.56
5.4.410.0270.06719.38
5.4.400.0230.03718.95
5.4.390.0200.03719.32
5.4.380.0170.04019.15
5.4.370.0200.03719.22
5.4.360.0200.03319.08
5.4.350.0270.03019.22
5.4.340.0200.03719.24
5.4.320.0200.04019.23
5.4.310.0130.04319.22
5.4.300.0170.03719.34
5.4.290.0200.03719.21
5.4.280.0330.06719.15
5.4.270.0230.04019.13
5.4.260.0300.06719.09
5.4.250.0270.05719.13
5.4.240.0270.07319.18
5.4.230.0430.05319.31
5.4.220.0230.03719.19
5.4.210.0370.06018.98
5.4.200.0270.03719.31
5.4.190.0230.08719.14
5.4.180.0300.04019.23
5.4.170.0370.06018.98
5.4.160.0330.07019.18
5.4.150.0330.06719.12
5.4.140.0230.04316.36
5.4.130.0300.06716.51
5.4.120.0200.04016.28
5.4.110.0230.04316.56
5.4.100.0200.04016.52
5.4.90.0230.07016.40
5.4.80.0230.06016.43
5.4.70.0300.05016.54
5.4.60.0270.06016.48
5.4.50.0200.04716.58
5.4.40.0170.05016.35
5.4.30.0270.06316.55
5.4.20.0300.06016.38
5.4.10.0130.06316.53
5.4.00.0170.04315.80
5.3.290.0130.04714.71
5.3.280.0270.03714.82
5.3.270.0270.05014.58
5.3.260.0330.07714.61
5.3.250.0300.06714.61
5.3.240.0200.04014.77
5.3.230.0200.05014.59
5.3.220.0370.04014.69
5.3.210.0200.05014.54
5.3.200.0300.06314.49
5.3.190.0270.04714.63
5.3.180.0330.04714.64
5.3.170.0200.04314.46
5.3.160.1000.04714.61
5.3.150.0230.05314.47
5.3.140.0200.06314.61
5.3.130.0270.06714.64
5.3.120.0230.06714.57
5.3.110.0230.04014.45
5.3.100.0300.03714.14
5.3.90.0330.04714.11
5.3.80.0200.03314.04
5.3.70.0200.05313.94
5.3.60.0200.04313.93
5.3.50.0200.04014.03
5.3.40.0370.06014.00
5.3.30.0230.03713.81
5.3.20.0270.07013.85
5.3.10.0200.07013.88
5.3.00.0230.04313.75
5.2.170.0200.04011.07
5.2.160.0200.05711.15
5.2.150.0170.05711.12
5.2.140.0130.06711.15
5.2.130.0200.02711.27
5.2.120.0170.04311.02
5.2.110.0170.04311.22
5.2.100.0130.03311.15
5.2.90.0200.05711.11
5.2.80.0230.05711.02
5.2.70.0170.05711.00
5.2.60.0130.06311.17
5.2.50.0170.06311.00
5.2.40.0130.06010.89
5.2.30.0200.04310.88
5.2.20.0170.03310.87
5.2.10.0100.04010.79
5.2.00.0200.04010.77
5.1.60.0200.0309.98
5.1.50.0170.04310.09
5.1.40.0230.0479.89
5.1.30.0200.05310.28
5.1.20.0100.05310.31
5.1.10.0170.04010.16
5.1.00.0170.04310.30
5.0.50.0030.0509.65
5.0.40.0100.0379.65
5.0.30.0070.0679.65
5.0.20.0100.0179.65
5.0.10.0100.0379.65
5.0.00.0070.0479.65
4.4.90.0100.0239.65
4.4.80.0030.0309.65
4.4.70.0030.0379.65
4.4.60.0170.0279.65
4.4.50.0070.0279.65
4.4.40.0130.0479.65
4.4.30.0100.0279.65
4.4.20.0100.0209.65
4.4.10.0130.0339.65
4.4.00.0070.0509.65
4.3.110.0070.0339.65
4.3.100.0070.0279.65
4.3.90.0030.0379.65
4.3.80.0170.0279.65
4.3.70.0070.0309.65
4.3.60.0070.0139.65
4.3.50.0100.0139.65
4.3.40.0070.0579.65
4.3.30.0000.0379.65
4.3.20.0000.0309.65
4.3.10.0130.0279.65
4.3.00.0030.0409.65

preferences:
40.58 ms | 401 KiB | 5 Q