3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new stdClass; $a->id = 1; $b = $a; // mesmo objeto $c = new stdClass; $c->id = 2; $test = array($a, $b, $c); print_r(array_unique($test, SORT_REGULAR));

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.130.0120.00918.47
8.3.120.0060.00320.60
8.3.110.0070.00420.94
8.3.100.0040.00824.06
8.3.90.0000.01526.77
8.3.80.0060.00318.31
8.3.70.0040.01116.63
8.3.60.0150.00318.30
8.3.50.0150.00721.19
8.3.40.0040.01118.72
8.3.30.0140.00018.98
8.3.20.0080.00020.51
8.3.10.0000.00823.57
8.3.00.0080.00019.50
8.2.250.0080.00816.69
8.2.240.0000.00818.93
8.2.230.0060.00322.58
8.2.220.0070.00337.54
8.2.210.0160.00026.77
8.2.200.0060.00316.63
8.2.190.0140.00716.58
8.2.180.0100.01018.41
8.2.170.0120.00318.96
8.2.160.0070.01422.96
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0000.00820.80
8.2.110.0060.00322.25
8.2.100.0040.00817.78
8.2.90.0000.00819.23
8.2.80.0000.00817.97
8.2.70.0090.00017.63
8.2.60.0000.00817.80
8.2.50.0060.00318.07
8.2.40.0030.00520.01
8.2.30.0040.00417.95
8.2.20.0040.00417.68
8.2.10.0000.00817.96
8.2.00.0000.00717.99
8.1.300.0090.00018.05
8.1.290.0080.00330.84
8.1.280.0070.01125.92
8.1.270.0100.01020.39
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0070.00319.16
8.1.230.0120.00017.70
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0000.00817.47
8.1.190.0030.00517.23
8.1.180.0040.00418.10
8.1.170.0080.00018.56
8.1.160.0050.00221.97
8.1.150.0040.00418.89
8.1.140.0000.00717.48
8.1.130.0000.00817.70
8.1.120.0040.00417.51
8.1.110.0000.00717.44
8.1.100.0040.00417.52
8.1.90.0040.00417.34
8.1.80.0040.00417.48
8.1.70.0040.00417.33
8.1.60.0060.00317.58
8.1.50.0050.00317.51
8.1.40.0050.00317.55
8.1.30.0030.00517.63
8.1.20.0060.00317.64
8.1.10.0060.00317.44
8.1.00.0060.00317.57
8.0.300.0000.00818.77
8.0.290.0060.00316.75
8.0.280.0000.00718.44
8.0.270.0040.00416.77
8.0.260.0060.00017.22
8.0.250.0000.00716.97
8.0.240.0090.00016.95
8.0.230.0030.00516.89
8.0.220.0030.00316.85
8.0.210.0000.00716.88
8.0.200.0030.00316.85
8.0.190.0030.00716.95
8.0.180.0070.00016.96
8.0.170.0000.00916.90
8.0.160.0030.00316.93
8.0.150.0080.00016.90
8.0.140.0000.00716.91
8.0.130.0000.00713.27
8.0.120.0040.00416.88
8.0.110.0000.00716.94
8.0.100.0050.00316.78
8.0.90.0000.00816.77
8.0.80.0040.01216.85
8.0.70.0070.00016.75
8.0.60.0000.00816.91
8.0.50.0080.00016.71
8.0.30.0040.01417.18
8.0.20.0080.01117.40
8.0.10.0040.00416.88
8.0.00.0090.01016.62
7.4.330.0000.00515.04
7.4.320.0030.00316.44
7.4.300.0030.00316.52
7.4.290.0070.00016.46
7.4.280.0000.00816.51
7.4.270.0070.00016.37
7.4.260.0000.00716.47
7.4.250.0060.00316.54
7.4.240.0060.00116.54
7.4.230.0030.00316.35
7.4.220.0060.01216.54
7.4.210.0070.01116.55
7.4.200.0030.00316.51
7.4.160.0090.00616.54
7.4.150.0100.01017.40
7.4.140.0060.01617.86
7.4.130.0090.01016.54
7.4.120.0060.01116.57
7.4.110.0100.01316.47
7.4.100.0030.01916.61
7.4.90.0060.01216.61
7.4.80.0140.00319.39
7.4.70.0040.01316.33
7.4.60.0040.01816.46
7.4.50.0050.00316.57
7.4.40.0090.00916.52
7.4.30.0120.00616.71
7.4.00.0060.00915.01
7.3.330.0000.00513.08
7.3.320.0050.00013.18
7.3.310.0030.00316.47
7.3.300.0030.00316.28
7.3.290.0030.01216.33
7.3.280.0080.00916.38
7.3.270.0030.01417.40
7.3.260.0080.00916.25
7.3.250.0090.00816.47
7.3.240.0070.01016.38
7.3.230.0090.01116.39
7.3.210.0060.01016.25
7.3.200.0070.01019.39
7.3.190.0130.00316.61
7.3.180.0150.01816.47
7.3.170.0040.01416.27
7.3.160.0100.00616.66
7.2.330.0070.01016.70
7.2.320.0070.01316.60
7.2.310.0070.01316.46
7.2.300.0130.00716.22
7.2.290.0120.00916.64
7.2.60.0030.00716.93
7.2.00.0070.00319.40
7.1.200.0070.00015.54
7.1.100.0000.01218.00
7.1.70.0030.01017.27
7.1.60.0060.00617.20
7.1.50.0070.01316.99
7.1.40.0040.00716.61
7.1.30.0000.01116.62
7.1.20.0100.00716.63
7.1.10.0090.00616.71
7.1.00.0380.01015.54
7.0.200.0000.01516.61
7.0.190.0040.00716.50
7.0.180.0030.00616.24
7.0.170.0000.00816.16
7.0.160.0080.00816.43
7.0.150.0090.00616.21
7.0.140.0040.01216.23
7.0.130.0060.00316.80
7.0.120.0050.00516.52
7.0.110.0040.00816.50
7.0.100.0070.00716.41
7.0.90.0050.00516.43
7.0.80.0030.00916.29
7.0.70.0080.00316.36
7.0.60.0060.00616.29
7.0.50.0050.00516.20
7.0.40.0060.00615.54
7.0.30.0080.00415.54
7.0.20.0090.00615.54
7.0.10.0070.01015.54
7.0.00.0000.01015.54
5.6.300.0130.04920.96
5.6.290.0040.04220.89
5.6.280.0030.04520.88
5.6.270.0100.03720.86
5.6.260.0030.04920.94
5.6.250.0090.04020.97
5.6.240.0170.04621.03
5.6.230.0030.04720.96
5.6.220.0180.04320.84
5.6.210.0000.04520.61
5.6.200.0090.04120.70
5.6.190.0130.03820.82
5.6.180.0120.03420.93
5.6.170.0040.04920.82
5.6.160.0070.04320.93
5.6.150.0190.04121.03
5.6.140.0060.04320.95
5.6.130.0040.04620.82
5.6.120.0000.05420.74
5.6.110.0070.04620.82
5.6.100.0140.04820.81
5.6.90.0100.04920.95
5.6.80.0030.04420.11
5.6.70.0030.04920.31
5.6.60.0090.04320.40
5.6.50.0030.04420.34
5.6.40.0070.04020.36
5.6.30.0000.04820.30
5.6.20.0070.07820.09
5.6.10.0060.04120.31
5.6.00.0040.04420.29
5.5.380.0070.08917.48
5.5.370.0060.03817.49
5.5.360.0030.04417.47
5.5.350.0030.04017.50
5.5.340.0030.04118.08
5.5.330.0030.04417.82
5.5.320.0070.05218.08
5.5.310.0030.05117.97
5.5.300.0060.03818.10
5.5.290.0000.05118.05
5.5.280.0030.07718.14
5.5.270.0070.04317.99
5.5.260.0030.04217.99
5.5.250.0000.04317.89
5.5.240.0000.04417.49
5.5.230.0100.08417.20
5.5.220.0070.03917.45
5.5.210.0100.04917.36
5.5.200.0030.04117.29
5.5.190.0030.05817.21
5.5.180.0030.04517.46
5.5.160.0030.04217.19
5.5.150.0100.07417.39
5.5.140.0030.04017.29
5.5.130.0000.04017.42
5.5.120.0000.04017.20
5.5.110.0040.04217.32
5.5.100.0070.07617.23
5.5.90.0090.03816.93
5.5.80.0030.03517.32
5.5.70.0000.04117.29
5.5.60.0030.08616.97
5.5.50.0030.03617.29
5.5.40.0030.03917.28
5.5.30.0000.04117.33
5.5.20.0030.03817.29
5.5.10.0030.04016.95
5.5.00.0000.04217.05
5.4.450.0030.04419.32
5.4.440.0030.04319.27
5.4.430.0000.04219.32
5.4.420.0040.04619.25
5.4.410.0000.05519.31
5.4.400.0030.03919.14
5.4.390.0000.04018.90
5.4.380.0030.03718.95
5.4.370.0030.03918.90
5.4.360.0060.03819.16
5.4.350.0100.04419.02
5.4.340.0100.05318.98
5.4.320.0030.04019.13
5.4.310.0030.05018.90
5.4.300.0030.03719.02
5.4.290.0070.04019.13
5.4.280.0000.06319.10
5.4.270.0130.05018.93
5.4.260.0030.06519.11
5.4.250.0070.04918.87
5.4.240.0090.03518.87
5.4.230.0100.03518.90
5.4.220.0030.04818.90
5.4.210.0000.04118.98
5.4.200.0000.08618.99
5.4.190.0100.03218.91
5.4.180.0000.04219.14
5.4.170.0060.03519.14
5.4.160.0000.05418.89
5.4.150.0030.04119.11
5.4.140.0030.03716.64
5.4.130.0030.06116.50
5.4.120.0030.03416.69
5.4.110.0000.04416.77
5.4.100.0030.03716.66
5.4.90.0070.03116.66
5.4.80.0030.03616.46
5.4.70.0030.05116.36
5.4.60.0070.03016.60
5.4.50.0060.03116.59
5.4.40.0060.03516.66
5.4.30.0030.03816.70
5.4.20.0060.04016.59
5.4.10.0030.05716.59
5.4.00.0040.03516.04
5.3.290.0030.04415.54
5.3.280.0000.04815.54
5.3.270.0000.04215.54
5.3.260.0040.03915.54
5.3.250.0040.03515.54
5.3.240.0030.03415.54
5.3.230.0030.03615.54
5.3.220.0060.03215.54
5.3.210.0060.03815.54
5.3.200.0100.02915.54
5.3.190.0000.04115.54
5.3.180.0030.07715.54
5.3.170.0000.04315.54
5.3.160.0090.02915.54
5.3.150.0030.05715.54
5.3.140.0000.04115.54
5.3.130.0030.03615.54
5.3.120.0030.05515.54
5.3.110.0070.03315.54
5.3.100.0060.03315.54
5.3.90.0070.03315.54
5.3.80.0030.05815.54
5.3.70.0030.03715.54
5.3.60.0030.03415.54
5.3.50.0030.04215.54
5.3.40.0000.05715.54
5.3.30.0030.03615.54
5.3.20.0030.03515.54
5.3.10.0030.03615.54
5.3.00.0030.05515.54
5.2.170.0030.03015.54
5.2.160.0000.03215.54
5.2.150.0070.02815.54
5.2.140.0030.03115.54
5.2.130.0030.06015.54
5.2.120.0000.04215.54
5.2.110.0000.03015.54
5.2.100.0070.02315.54
5.2.90.0030.03515.54
5.2.80.0030.02815.54
5.2.70.0000.03515.54
5.2.60.0030.05015.54
5.2.50.0030.03915.54
5.2.40.0040.02815.54
5.2.30.0100.02315.54
5.2.20.0030.02615.54
5.2.10.0030.02915.54
5.2.00.0000.03315.54
5.1.60.0000.02715.54
5.1.50.0030.02515.54
5.1.40.0060.02215.54
5.1.30.0000.03015.54
5.1.20.0030.02515.54
5.1.10.0000.03115.54
5.1.00.0000.02615.54
5.0.50.0030.03215.54
5.0.40.0000.02115.54
5.0.30.0000.03515.54
5.0.20.0000.02315.54
5.0.10.0070.02015.54
5.0.00.0030.03015.54
4.4.90.0000.01815.54
4.4.80.0000.02215.54
4.4.70.0000.01815.54
4.4.60.0000.01615.54
4.4.50.0040.01415.54
4.4.40.0000.02915.54
4.4.30.0030.01415.54
4.4.20.0000.01615.54
4.4.10.0000.03915.54
4.4.00.0000.02715.54
4.3.110.0030.01315.54
4.3.100.0000.01615.54
4.3.90.0030.01315.54
4.3.80.0000.02415.54
4.3.70.0030.01415.54
4.3.60.0000.01615.54
4.3.50.0030.01315.54
4.3.40.0040.02115.54
4.3.30.0040.01415.54
4.3.20.0030.01415.54
4.3.10.0040.01415.54
4.3.00.0000.01715.54

preferences:
29.25 ms | 403 KiB | 5 Q