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); array_shift($items); $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.0080.01718.66
8.3.50.0100.01022.92
8.3.40.0040.01118.98
8.3.30.0120.00419.24
8.3.20.0000.00820.20
8.3.10.0070.00023.39
8.3.00.0040.00419.50
8.2.180.0120.00416.88
8.2.170.0110.00722.96
8.2.160.0060.00620.46
8.2.150.0090.00024.18
8.2.140.0000.00824.66
8.2.130.0140.00326.16
8.2.120.0070.00020.91
8.2.110.0070.00322.20
8.2.100.0040.00819.76
8.2.90.0050.00319.20
8.2.80.0040.00417.97
8.2.70.0030.00717.38
8.2.60.0040.00417.77
8.2.50.0000.00818.07
8.2.40.0000.00819.94
8.2.30.0060.00318.09
8.2.20.0000.00817.63
8.2.10.0040.00418.19
8.2.00.0000.00717.72
8.1.280.0180.00025.92
8.1.270.0030.00823.99
8.1.260.0100.00026.35
8.1.250.0000.00728.09
8.1.240.0000.01023.74
8.1.230.0050.00519.02
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0080.00417.35
8.1.190.0040.00417.35
8.1.180.0000.00918.10
8.1.170.0040.00418.51
8.1.160.0070.00022.09
8.1.150.0000.00718.95
8.1.140.0000.00717.52
8.1.130.0000.00717.86
8.1.120.0000.00717.54
8.1.110.0000.00717.48
8.1.100.0000.00717.49
8.1.90.0000.00717.46
8.1.80.0000.00717.50
8.1.70.0000.00717.35
8.1.60.0000.00917.49
8.1.50.0090.00017.55
8.1.40.0000.00717.52
8.1.30.0080.00017.74
8.1.20.0050.00317.67
8.1.10.0000.00717.63
8.1.00.0040.00417.42
8.0.300.0000.00818.77
8.0.290.0040.00416.63
8.0.280.0070.00018.48
8.0.270.0050.00217.16
8.0.260.0030.00317.32
8.0.250.0000.00616.94
8.0.240.0000.00917.02
8.0.230.0050.00316.96
8.0.220.0030.00316.96
8.0.210.0040.00416.99
8.0.200.0000.00617.04
8.0.190.0040.00416.98
8.0.180.0000.00817.04
8.0.170.0050.00317.00
8.0.160.0030.00316.85
8.0.150.0000.00816.97
8.0.140.0000.00716.87
8.0.130.0030.00313.36
8.0.120.0000.00716.94
8.0.110.0030.00616.87
8.0.100.0070.00017.03
8.0.90.0050.00216.86
8.0.80.0050.01016.89
8.0.70.0070.00016.98
8.0.60.0040.00416.95
8.0.50.0050.00317.04
8.0.30.0070.01217.11
8.0.20.0090.01417.40
8.0.10.0000.00717.04
8.0.00.0110.00616.86
7.4.330.0000.00515.09
7.4.320.0070.00016.62
7.4.300.0060.00016.45
7.4.290.0000.00716.53
7.4.280.0040.00416.46
7.4.270.0030.00316.58
7.4.260.0030.00416.49
7.4.250.0070.00016.37
7.4.240.0030.00416.54
7.4.230.0070.00016.66
7.4.220.0110.00716.66
7.4.210.0130.00716.55
7.4.200.0030.00316.51
7.4.160.0110.00416.36
7.4.150.0090.00917.40
7.4.140.0130.00617.86
7.4.130.0110.00816.53
7.4.120.0100.00916.53
7.4.110.0180.00016.42
7.4.100.0070.01416.44
7.4.90.0120.00616.41
7.4.80.0210.01119.39
7.4.70.0140.00716.46
7.4.60.0070.00916.55
7.4.50.0000.00616.40
7.4.40.0040.01316.60
7.4.30.0110.00916.61
7.4.00.0100.00714.79
7.3.330.0030.00313.10
7.3.320.0030.00213.32
7.3.310.0000.00716.21
7.3.300.0000.00716.32
7.3.290.0040.01116.45
7.3.280.0100.00816.35
7.3.270.0120.00617.40
7.3.260.0060.01116.51
7.3.250.0140.00216.47
7.3.240.0100.00716.63
7.3.230.0100.00816.39
7.3.210.0090.00916.38
7.3.200.0070.01019.39
7.3.190.0100.01416.29
7.3.180.0090.00616.48
7.3.170.0150.00616.27
7.3.160.0060.01016.33
7.2.330.0140.00916.73
7.2.320.0100.00716.77
7.2.310.0150.00416.77
7.2.300.0080.00816.66
7.2.290.0070.01116.69
7.2.110.0140.00516.25
7.2.100.0160.00316.63
7.2.90.0150.00616.20
7.2.80.0120.00316.65
7.2.70.0160.00416.74
7.2.60.0110.00616.80
7.2.50.0080.00916.78
7.2.40.0140.00616.93
7.2.30.0170.00016.84
7.2.20.0130.00916.61
7.2.10.0350.01116.84
7.2.00.0160.00016.71
7.1.230.0140.00615.64
7.1.220.0170.00015.65
7.1.210.0150.00315.62
7.1.200.0060.00615.57
7.1.190.0610.00015.61
7.1.180.0100.00515.57
7.1.170.0050.01315.77
7.1.160.0080.01115.83
7.1.150.0120.00815.83
7.1.140.0040.01415.69
7.1.130.0390.00015.59
7.1.120.0320.00315.70
7.1.110.0140.00215.86
7.1.100.0090.00515.62
7.1.90.0200.00015.88
7.1.80.0140.00515.88
7.1.70.0070.00716.32
7.1.60.0140.00717.70
7.1.50.0160.00716.46
7.1.40.0160.00415.54
7.1.30.0090.00915.85
7.1.20.0180.00315.65
7.1.10.0150.00015.84
7.1.00.0030.04319.06
7.0.310.0030.01415.54
7.0.300.0430.00715.24
7.0.290.0480.00415.28
7.0.280.0080.00515.47
7.0.270.0120.00415.28
7.0.260.0120.00015.33
7.0.250.0120.00615.33
7.0.240.0140.00315.30
7.0.230.0350.01015.36
7.0.220.0100.00515.18
7.0.210.0080.00615.28
7.0.200.0040.00614.96
7.0.190.0090.00415.42
7.0.180.0100.00715.51
7.0.170.0090.00515.25
7.0.160.0160.00315.29
7.0.150.0110.00515.38
7.0.140.0070.03818.58
7.0.130.0120.00515.46
7.0.120.0110.00215.43
7.0.110.0100.00515.49
7.0.100.0680.01015.27
7.0.90.0140.00015.18
7.0.80.0060.00615.40
7.0.70.0100.00815.11
7.0.60.0110.04417.56
7.0.50.0080.04316.74
7.0.40.0100.02816.82
7.0.30.0190.02316.72
7.0.20.0200.04116.70
7.0.10.0120.02416.78
7.0.00.0060.04716.66
5.6.380.0100.00714.12
5.6.370.0030.01414.29
5.6.360.0080.01114.28
5.6.350.0160.00614.31
5.6.340.0110.00614.21
5.6.330.0110.00714.54
5.6.320.0130.00214.30
5.6.310.0190.00414.11
5.6.300.0000.01414.17
5.6.290.0110.00514.55
5.6.280.0040.04017.74
5.6.270.0110.00714.59
5.6.260.0160.00014.36
5.6.250.0120.00313.99
5.6.240.0120.00614.42
5.6.230.0100.00714.46
5.6.220.0040.00814.39
5.6.210.0070.04317.40
5.6.200.0130.04516.25
5.6.190.0080.04417.38
5.6.180.0180.02317.48
5.6.170.0150.03817.29
5.6.160.0120.04417.58
5.6.150.0130.03916.24
5.6.140.0070.03716.14
5.6.130.0170.02216.27
5.6.120.0060.02517.78
5.6.110.0160.01417.57
5.6.100.0110.03017.60
5.6.90.0070.03617.55
5.6.80.0130.03517.15
5.6.70.0100.00714.18
5.6.60.0090.01113.98
5.6.50.0140.00014.31
5.6.40.0060.00614.11
5.6.30.0080.00814.16
5.6.20.0140.00414.36
5.6.10.0070.01014.47
5.6.00.0140.00314.62
5.5.380.0120.00312.79
5.5.370.0060.00812.79
5.5.360.0090.00612.79
5.5.350.0200.03616.66
5.5.340.0080.03315.40
5.5.330.0070.03516.50
5.5.320.0130.04316.57
5.5.310.0180.03716.57
5.5.300.0130.01515.38
5.5.290.0070.04315.39
5.5.280.0070.03016.78
5.5.270.0070.04216.84
5.5.260.0100.04216.79
5.5.250.0000.02716.78
5.5.240.0080.04016.47
5.5.230.0060.00612.79
5.5.220.0110.00612.79
5.5.210.0070.00312.79
5.5.200.0040.00412.79
5.5.190.0090.00312.79
5.5.180.0090.00612.79
5.5.170.0090.00614.00
5.5.160.0050.00512.79
5.5.150.0160.00012.79
5.5.140.0060.00612.79
5.5.130.0040.00912.79
5.5.120.0100.00312.79
5.5.110.0110.00412.79
5.5.100.0050.00912.79
5.5.90.0080.00512.79
5.5.80.0050.00512.79
5.5.70.0080.00212.79
5.5.60.0100.00012.79
5.5.50.0070.00712.79
5.5.40.0100.00312.79
5.5.30.0090.00312.79
5.5.20.0060.00612.79
5.5.10.0090.00312.79
5.5.00.0090.00412.79
5.4.450.0050.03516.20
5.4.440.0500.02716.21
5.4.430.0200.02315.99
5.4.420.0450.04016.04
5.4.410.0420.03016.12
5.4.400.0530.03216.03
5.4.390.0080.03216.04
5.4.380.0520.03215.73
5.4.370.0510.03215.78
5.4.360.0500.03815.66
5.4.350.0520.02315.72
5.4.340.0530.04615.76
5.4.330.0080.00412.79
5.4.320.0060.02112.64
5.4.310.0100.02512.64
5.4.300.0070.02012.65
5.4.290.0070.02112.64
5.4.280.0090.02112.59
5.4.270.0050.02212.59
5.4.260.0060.02212.59
5.4.250.0110.02012.59
5.4.240.0050.02312.59
5.4.230.0090.01812.59
5.4.220.0050.02312.59
5.4.210.0060.02212.59
5.4.200.0070.02312.59
5.4.190.0060.02612.59
5.4.180.0070.02012.59
5.4.170.0070.01912.59
5.4.160.0030.02312.59
5.4.150.0060.02112.59
5.4.140.0060.02312.43
5.4.130.0090.01812.42
5.4.120.0080.02412.40
5.4.110.0070.02012.40
5.4.100.0070.02112.40
5.4.90.0040.02812.40
5.4.80.0080.02412.40
5.4.70.0060.02012.40
5.4.60.0070.02012.40
5.4.50.0080.01912.40
5.4.40.0050.02112.39
5.4.30.0050.02512.39
5.4.20.0090.01912.39
5.4.10.0090.02012.39
5.4.00.0020.02612.13
5.3.290.0070.02212.79
5.3.280.0060.02212.75
5.3.270.0070.02312.76
5.3.260.0060.02212.76
5.3.250.0060.02212.75
5.3.240.0010.02412.76
5.3.230.0070.02112.75
5.3.220.0070.02212.73
5.3.210.0080.02112.73
5.3.200.0070.02612.74
5.3.190.0050.02912.73
5.3.180.0120.02412.73
5.3.170.0090.02812.73
5.3.160.0100.01912.73
5.3.150.0110.01712.73
5.3.140.0080.02012.73
5.3.130.0050.02212.72
5.3.120.0060.02512.72
5.3.110.0080.02112.72
5.3.100.0060.02012.46
5.3.90.0080.02012.45
5.3.80.0070.01812.45
5.3.70.0060.02112.45
5.3.60.0040.02412.44
5.3.50.0070.02312.41
5.3.40.0030.02412.41
5.3.30.0070.02412.39
5.3.20.0100.01812.28
5.3.10.0080.01712.26
5.3.00.0100.01612.26
5.2.170.0060.01810.99
5.2.160.0020.02010.99
5.2.150.0050.01710.99
5.2.140.0050.02410.98
5.2.130.0060.02110.96
5.2.120.0070.01610.96
5.2.110.0040.01610.97
5.2.100.0070.01710.96
5.2.90.0090.01410.97
5.2.80.0050.02310.96
5.2.70.0050.01710.96
5.2.60.0090.01410.94
5.2.50.0020.01810.92
5.2.40.0050.02210.91
5.2.30.0040.01910.90
5.2.20.0050.02110.90
5.2.10.0080.01410.86
5.2.00.0050.01710.79
5.1.60.0030.01510.43
5.1.50.0050.01210.43
5.1.40.0040.01610.42
5.1.30.0050.01510.59
5.1.20.0050.01310.60
5.1.10.0060.01310.47
5.1.00.0020.01710.47
5.0.50.0030.0199.70
5.0.40.0060.0119.63
5.0.30.0060.0189.54
5.0.20.0040.0119.53
5.0.10.0060.0099.51
5.0.00.0070.0199.51
4.4.90.0030.0128.78
4.4.80.0050.0108.77
4.4.70.0040.0098.77
4.4.60.0030.0098.77
4.4.50.0030.0098.78
4.4.40.0010.0178.75
4.4.30.0010.0178.77
4.4.20.0040.0118.82
4.4.10.0020.0128.82
4.4.00.0020.0148.78
4.3.110.0060.0078.73
4.3.100.0030.0098.73
4.3.90.0010.0108.71
4.3.80.0010.0178.69
4.3.70.0020.0108.71
4.3.60.0050.0138.71
4.3.50.0040.0128.71
4.3.40.0060.0138.66
4.3.30.0020.0118.04
4.3.20.0020.0108.02
4.3.10.0020.0128.00
4.3.00.0030.00913.11

preferences:
38.39 ms | 401 KiB | 5 Q