3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new stdclass(); $a->somenumber = 1; $a->name = 'edson'; $b = new stdclass(); $b->somenumber = 1; $b->name = 'chuck'; $c = new stdclass(); $c->somenumber = 1; $c->name = 'edson'; $z = [$a, $b, $c]; print_r (array_unique ($z));

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.70.0100.00616.58
8.3.60.0040.01116.50
8.3.50.0150.00721.14
8.3.40.0180.00018.82
8.3.30.0100.00318.92
8.3.20.0070.00020.33
8.3.10.0050.00321.74
8.3.00.0080.00017.80
8.2.180.0110.01118.53
8.2.170.0000.01422.96
8.2.160.0100.00320.38
8.2.150.0090.00024.18
8.2.140.0030.00524.66
8.2.130.0030.00526.16
8.2.120.0080.00017.63
8.2.110.0100.00022.08
8.2.100.0060.00617.72
8.2.90.0090.00017.75
8.2.80.0050.00317.97
8.2.70.0050.00317.80
8.2.60.0050.00317.93
8.2.50.0040.00418.10
8.2.40.0070.00020.34
8.2.30.0070.00320.75
8.2.20.0040.00417.62
8.2.10.0040.00418.07
8.2.00.0000.00817.97
8.1.280.0090.00625.92
8.1.270.0080.00023.82
8.1.260.0030.00526.35
8.1.250.0070.00028.09
8.1.240.0060.00324.02
8.1.230.0070.00418.87
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0090.00617.25
8.1.190.0000.00917.13
8.1.180.0030.00618.10
8.1.170.0000.00918.64
8.1.160.0040.00422.01
8.1.150.0030.00518.89
8.1.140.0030.00517.44
8.1.130.0030.00317.70
8.1.120.0040.00417.50
8.1.110.0060.00317.46
8.1.100.0000.00717.36
8.1.90.0000.00717.47
8.1.80.0040.00317.38
8.1.70.0070.00017.36
8.1.60.0040.00417.50
8.1.50.0000.00817.57
8.1.40.0040.00417.47
8.1.30.0040.00417.60
8.1.20.0000.00817.65
8.1.10.0050.00317.61
8.1.00.0000.00717.48
8.0.300.0000.00719.83
8.0.290.0000.00716.75
8.0.280.0000.00718.40
8.0.270.0030.00317.20
8.0.260.0030.00317.28
8.0.250.0030.00317.05
8.0.240.0070.00016.91
8.0.230.0040.00416.99
8.0.220.0040.00416.95
8.0.210.0070.00016.97
8.0.200.0030.00316.99
8.0.190.0040.00417.06
8.0.180.0070.00016.96
8.0.170.0000.00716.96
8.0.160.0040.00416.98
8.0.150.0040.00316.89
8.0.140.0040.00416.96
8.0.130.0060.00013.35
8.0.120.0070.00316.94
8.0.110.0040.00417.02
8.0.100.0040.00417.02
8.0.90.0000.00717.02
8.0.80.0030.01316.98
8.0.70.0000.00816.85
8.0.60.0000.00716.93
8.0.50.0000.00717.07
8.0.30.0050.01116.90
8.0.20.0080.01017.40
8.0.10.0070.00017.14
8.0.00.0060.01316.74
7.4.330.0060.00015.14
7.4.320.0000.00616.63
7.4.300.0030.00316.52
7.4.290.0000.00716.51
7.4.280.0000.00816.44
7.4.270.0040.00416.53
7.4.260.0050.00216.56
7.4.250.0000.00816.42
7.4.240.0050.00316.55
7.4.230.0050.00316.50
7.4.220.0090.00916.52
7.4.210.0090.00216.42
7.4.200.0000.00716.68
7.4.160.0100.00716.47
7.4.150.0100.00617.40
7.4.140.0100.01117.86
7.4.130.0130.00616.48
7.4.120.0080.01016.59
7.4.110.0130.00616.45
7.4.100.0100.00716.49
7.4.90.0110.00716.53
7.4.80.0160.00919.39
7.4.70.0070.01316.50
7.4.60.0120.00416.40
7.4.50.0060.00316.59
7.4.40.0080.01216.38
7.4.30.0110.01116.47
7.4.00.0070.00615.21
7.3.330.0030.00313.06
7.3.320.0040.00313.20
7.3.310.0040.00416.39
7.3.300.0030.00316.24
7.3.290.0100.00816.29
7.3.280.0060.01116.33
7.3.270.0110.00617.40
7.3.260.0120.01216.39
7.3.240.0120.00616.23
7.3.230.0030.01316.59
7.3.210.0090.01516.46
7.3.200.0070.01016.34
7.3.190.0110.00516.59
7.3.180.0130.01016.39
7.3.170.0070.01016.37
7.3.160.0120.00616.50
7.3.10.0090.00616.57
7.3.00.0000.01216.68
7.2.330.0070.01116.58
7.2.320.0150.00616.69
7.2.310.0100.01316.53
7.2.300.0180.00316.38
7.2.290.0130.01016.67
7.2.130.0030.01016.83
7.2.120.0070.00716.71
7.2.110.0060.00616.87
7.2.100.0000.01017.07
7.2.90.0160.00017.05
7.2.80.0090.00616.88
7.2.70.0070.00316.92
7.2.60.0070.00716.78
7.2.50.0000.01516.92
7.2.40.0080.00316.88
7.2.30.0130.00016.95
7.2.20.0090.00417.01
7.2.10.0090.00316.89
7.2.00.0080.00517.94
7.1.250.0030.01015.89
7.1.200.0030.00615.94
7.1.100.0030.00818.25
7.1.70.0000.00817.11
7.1.60.0110.01519.50
7.1.50.0270.01034.49
7.1.00.0000.09322.44
7.0.200.0000.01016.71
7.0.60.0100.07319.97
7.0.50.0000.08317.85
7.0.40.0070.05020.20
7.0.30.0200.05020.17
7.0.20.0270.05020.13
7.0.10.0130.04320.09
7.0.00.0070.04020.19
5.6.280.0030.03721.13
5.6.210.0030.07720.74
5.6.200.0070.08018.13
5.6.190.0000.04720.57
5.6.180.0370.04020.77
5.6.170.0330.04020.54
5.6.160.0070.08720.49
5.6.150.0070.03718.18
5.6.140.0130.05018.11
5.6.130.0030.04718.19
5.6.120.0070.06021.02
5.6.110.0230.06021.10
5.6.100.0070.04320.85
5.6.90.0070.07720.96
5.6.80.0030.08720.36
5.5.350.0100.07320.41
5.5.340.0100.06318.02
5.5.330.0130.07320.21
5.5.320.3030.04720.13
5.5.310.0230.09020.29
5.5.300.0100.08017.95
5.5.290.0070.04017.99
5.5.280.0030.08320.88
5.5.270.0070.04720.84
5.5.260.0070.08720.75
5.5.250.0000.04320.65
5.5.240.0030.03020.18
5.4.450.0670.06019.54
5.4.440.0770.05019.63
5.4.430.0630.06319.52
5.4.420.0600.06019.59
5.4.410.0600.05719.36
5.4.400.0670.05719.25
5.4.390.0830.04319.25
5.4.380.0630.05319.30
5.4.370.0600.05719.21
5.4.360.0700.06019.25
5.4.350.0600.05718.95
5.4.340.0670.06019.14
5.4.320.0770.06018.77
5.4.310.0800.06319.15
5.4.300.0700.04719.27
5.4.290.0900.06319.08
5.4.280.0800.07318.94
5.4.270.1030.05019.14
5.4.260.0670.06319.20
5.4.250.0670.05319.14
5.4.240.0830.04019.13
5.4.230.0700.04719.27
5.4.220.0770.04318.99
5.4.210.0700.04718.77
5.4.200.0670.05018.81
5.4.190.0630.05318.80
5.4.180.0830.06019.30
5.4.170.0930.06319.18
5.4.160.0700.06719.13
5.4.150.0700.04718.75
5.4.140.0670.05016.25
5.4.130.0670.04716.16
5.4.120.0630.05016.21
5.4.110.0730.05716.21
5.4.100.0830.06016.36
5.4.90.0870.04316.37
5.4.80.0770.04016.49
5.4.70.0330.06316.37
5.4.60.0230.07016.40
5.4.50.0070.05316.41
5.4.40.0170.03716.27
5.4.30.0430.05016.36
5.4.20.0370.04716.36

preferences:
56.5 ms | 401 KiB | 5 Q