3v4l.org

run code in 300+ PHP versions simultaneously
<?php $items = array(new \stdClass(), new \stdClass()); $copy = array(); foreach ($items as $item) { $copy[] = $item; } $udiff = array_udiff($items, $copy, function ($a, $b) { var_dump($a, $b, $a === $b); return $a === $b; }); echo PHP_EOL . 'Array contents' . PHP_EOL . PHP_EOL; var_dump($udiff, $items, $copy);

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.0140.00716.63
8.3.50.0060.01122.92
8.3.40.0040.01118.79
8.3.30.0090.00919.04
8.3.20.0070.00020.21
8.3.10.0060.00323.54
8.3.00.0080.00017.75
8.2.180.0060.01016.50
8.2.170.0030.01422.96
8.2.160.0100.00320.39
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0000.00820.75
8.2.110.0000.01022.25
8.2.100.0040.00820.94
8.2.90.0060.00319.26
8.2.80.0040.00417.97
8.2.70.0030.00517.50
8.2.60.0000.00818.05
8.2.50.0000.00818.07
8.2.40.0050.00320.07
8.2.30.0030.00618.17
8.2.20.0070.00017.62
8.2.10.0000.00718.18
8.2.00.0080.00017.79
8.1.280.0130.01025.92
8.1.270.0060.00323.83
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0030.00623.83
8.1.230.0040.00819.02
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0120.00017.24
8.1.190.0060.00317.38
8.1.180.0060.00318.10
8.1.170.0040.00418.52
8.1.160.0040.00422.02
8.1.150.0000.00718.90
8.1.140.0040.00417.36
8.1.130.0000.00717.83
8.1.120.0000.00717.38
8.1.110.0040.00417.44
8.1.100.0000.00717.48
8.1.90.0040.00417.45
8.1.80.0000.00717.51
8.1.70.0040.00417.41
8.1.60.0040.00417.55
8.1.50.0050.00317.43
8.1.40.0030.00517.52
8.1.30.0030.00617.67
8.1.20.0000.00817.72
8.1.10.0000.00817.45
8.1.00.0000.00817.40
8.0.300.0040.00418.77
8.0.290.0030.00516.75
8.0.280.0050.00218.43
8.0.270.0030.00317.32
8.0.260.0000.00617.26
8.0.250.0000.00717.03
8.0.240.0050.00317.01
8.0.230.0040.00416.98
8.0.220.0000.00916.86
8.0.210.0040.00416.86
8.0.200.0000.00617.03
8.0.190.0040.00417.00
8.0.180.0000.00816.98
8.0.170.0040.00416.91
8.0.160.0040.00416.99
8.0.150.0000.00716.84
8.0.140.0070.00016.94
8.0.130.0000.00613.39
8.0.120.0030.00616.95
8.0.110.0070.00016.82
8.0.100.0040.00416.99
8.0.90.0040.00416.98
8.0.80.0090.01216.98
8.0.70.0040.00416.85
8.0.60.0000.00716.79
8.0.50.0030.00516.97
8.0.30.0140.00517.14
8.0.20.0100.01117.40
8.0.10.0000.00716.95
8.0.00.0090.00916.95
7.4.330.0060.00015.09
7.4.320.0030.00316.49
7.4.300.0030.00316.64
7.4.290.0060.00016.41
7.4.280.0040.00416.50
7.4.270.0030.00316.50
7.4.260.0000.00816.48
7.4.250.0060.00316.52
7.4.240.0030.00516.46
7.4.230.0040.00416.41
7.4.220.0090.00916.45
7.4.210.0110.00316.48
7.4.200.0070.00016.69
7.4.160.0110.00416.34
7.4.150.0070.01117.40
7.4.140.0130.00717.86
7.4.130.0060.01116.49
7.4.120.0140.00716.47
7.4.110.0110.00716.76
7.4.100.0170.00816.46
7.4.90.0130.00616.50
7.4.80.0100.01319.39
7.4.70.0160.00616.48
7.4.60.0100.00716.43
7.4.50.0000.00716.57
7.4.40.0130.01016.42
7.4.30.0060.01116.51
7.4.00.0030.01315.07
7.3.330.0060.00013.19
7.3.320.0000.00513.23
7.3.310.0050.00216.35
7.3.300.0030.00316.38
7.3.290.0130.00316.36
7.3.280.0080.00916.34
7.3.270.0140.00517.40
7.3.260.0120.00616.36
7.3.250.0130.00716.39
7.3.240.0130.00616.32
7.3.230.0030.01316.39
7.3.210.0140.00316.58
7.3.200.0100.00719.39
7.3.190.0150.00916.48
7.3.180.0060.01116.67
7.3.170.0130.00716.55
7.3.160.0100.00516.36
7.2.330.0090.00916.93
7.2.320.0100.01316.49
7.2.310.0110.01016.58
7.2.300.0070.01116.83
7.2.290.0070.01016.60
7.2.60.0050.00517.03
7.2.00.0030.00919.55
7.1.200.0100.00315.90
7.1.100.0040.01218.31
7.1.70.0030.00517.03
7.1.60.0100.01419.40
7.1.50.0060.01917.06
7.1.00.0030.07322.43
7.0.200.0370.00714.75
7.0.140.0030.07022.00
7.0.60.0130.06019.88
7.0.50.0070.08317.90
7.0.40.0030.05320.07
7.0.30.0230.05720.35
7.0.20.0370.07020.27
7.0.10.0100.06320.24
7.0.00.0070.09020.12
5.6.280.0000.07720.82
5.6.210.0070.04720.61
5.6.200.0070.03718.18
5.6.190.0070.05320.64
5.6.180.0270.04720.55
5.6.170.0270.06320.54
5.6.160.0130.07720.55
5.6.150.0070.07318.16
5.6.140.0030.04318.24
5.6.130.0070.05718.27
5.6.120.0070.07721.12
5.6.110.0130.08021.01
5.6.100.0030.06021.10
5.6.90.0130.07720.97
5.6.80.0100.08020.51
5.5.350.0030.08020.45
5.5.340.0130.07317.98
5.5.330.0070.08020.40
5.5.320.0300.05320.42
5.5.310.0270.06020.34
5.5.300.0170.07017.96
5.5.290.0030.05317.99
5.5.280.0030.05020.75
5.5.270.0070.08720.76
5.5.260.0070.07020.65
5.5.250.0070.08020.69
5.5.240.0270.06720.05
5.4.450.0370.04019.46
5.4.440.0430.04019.54
5.4.430.0270.05319.46
5.4.420.0070.04319.52
5.4.410.0200.04019.36
5.4.400.0530.04319.09
5.4.390.0730.04319.22
5.4.380.0900.06318.62
5.4.370.0830.05318.67
5.4.360.1000.04318.68
5.4.350.0730.05318.75
5.4.340.1230.05718.62
5.4.320.0040.03912.51
5.4.310.0070.03712.50
5.4.300.0060.03612.50
5.4.290.0060.03812.50
5.4.280.0070.03412.40
5.4.270.0080.04512.39
5.4.260.0070.04612.39
5.4.250.0060.03812.39
5.4.240.0060.03612.39
5.4.230.0110.03212.39
5.4.220.0060.03612.39
5.4.210.0090.04212.39
5.4.200.0060.03912.38
5.4.190.0060.03612.38
5.4.180.0030.03912.38
5.4.170.0080.04112.39
5.4.160.0080.03512.39
5.4.150.0060.04112.39
5.4.140.0060.03712.07
5.4.130.0070.03512.05
5.4.120.0100.03912.02
5.4.110.0060.05212.01
5.4.100.0050.04012.01
5.4.90.0090.04912.01
5.4.80.0090.04212.01
5.4.70.0100.04112.01
5.4.60.0040.03712.01
5.4.50.0070.03312.01
5.4.40.0080.03112.00
5.4.30.0050.03811.99
5.4.20.0060.03611.99
5.4.10.0060.03811.99
5.4.00.0080.04411.48
5.3.290.0100.04212.80
5.3.280.0090.03812.71
5.3.270.0050.04212.73
5.3.260.0050.04012.72
5.3.250.0080.05212.72
5.3.240.0090.04212.72
5.3.230.0080.03712.71
5.3.220.0080.04112.68
5.3.210.0080.03912.68
5.3.200.0100.03312.68
5.3.190.0070.04012.68
5.3.180.0070.04512.68
5.3.170.0070.03512.67
5.3.160.0040.03812.68
5.3.150.0050.03912.67
5.3.140.0070.03612.66
5.3.130.0090.03612.66
5.3.120.0070.03812.65
5.3.110.0090.04112.66
5.3.100.0060.03912.13
5.3.90.0100.04012.11
5.3.80.0070.03912.11
5.3.70.0090.03412.11
5.3.60.0120.03012.09
5.3.50.0060.03712.03
5.3.40.0050.03812.03
5.3.30.0080.03411.99
5.3.20.0090.04411.77
5.3.10.0110.04411.74
5.3.00.0080.03711.73
5.2.170.0040.0309.19
5.2.160.0020.0309.18
5.2.150.0050.0299.18
5.2.140.0050.0359.18
5.2.130.0050.0299.14
5.2.120.0090.0329.14
5.2.110.0050.0289.15
5.2.100.0060.0319.15
5.2.90.0050.0299.15
5.2.80.0040.0309.14
5.2.70.0030.0319.14
5.2.60.0080.0439.10
5.2.50.0030.0339.07
5.2.40.0060.0279.04
5.2.30.0070.0369.02
5.2.20.0080.0319.00
5.2.10.0030.0368.92
5.2.00.0040.0318.79
5.1.60.0080.0228.07
5.1.50.0040.0328.06
5.1.40.0050.0308.05
5.1.30.0080.0258.40
5.1.20.0060.0288.42
5.1.10.0010.0298.14
5.1.00.0050.0308.15
5.0.50.0090.0456.63
5.0.40.0080.0346.48
5.0.30.0090.0336.29
5.0.20.0100.0236.27
5.0.10.0050.0246.25
5.0.00.0070.0366.24
4.4.90.0020.0194.78
4.4.80.0050.0194.76
4.4.70.0070.0214.75
4.4.60.0060.0174.75
4.4.50.0040.0194.77
4.4.40.0050.0304.71
4.4.30.0030.0204.76
4.4.20.0080.0174.84
4.4.10.0020.0234.85
4.4.00.0050.0324.76
4.3.110.0060.0214.67
4.3.100.0040.0184.66
4.3.90.0030.0204.64
4.3.80.0020.0314.58
4.3.70.0060.0134.63
4.3.60.0070.0144.63
4.3.50.0080.0184.63
4.3.40.0040.0304.54
4.3.30.0030.0213.29
4.3.20.0000.0203.26
4.3.10.0040.0213.23
4.3.00.0030.01313.43

preferences:
51.72 ms | 400 KiB | 5 Q