3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass { public $prop; } $foo = new MyClass(); $foo->prop = 'test1'; $bar = $foo; $bam = new MyClass(); $bam->prop = 'test2'; $test = array($foo, $bar, $bam); print_r(array_unique($test, SORT_REGULAR)); echo $foo;

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.40.0030.01018.97
8.3.30.0100.00719.04
8.3.20.0040.00420.18
8.3.10.0040.00422.02
8.3.00.0050.00322.43
8.2.170.0070.00722.96
8.2.160.0000.01419.25
8.2.150.0120.00324.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00419.64
8.2.110.0030.00622.16
8.2.100.0060.00619.31
8.2.90.0050.00319.22
8.2.80.0060.00318.05
8.2.70.0050.00317.63
8.2.60.0040.00418.05
8.2.50.0000.00818.07
8.2.40.0030.00618.28
8.2.30.0040.00417.94
8.2.20.0050.00317.73
8.2.10.0040.00417.75
8.2.00.0040.00717.74
8.1.270.0030.00620.39
8.1.260.0050.00226.35
8.1.250.0050.00228.09
8.1.240.0090.00023.85
8.1.230.0080.00319.08
8.1.220.0050.00317.74
8.1.210.0030.00618.77
8.1.200.0070.00417.38
8.1.190.0000.00817.53
8.1.180.0050.00320.57
8.1.170.0060.00318.45
8.1.160.0050.00322.14
8.1.150.0000.00718.64
8.1.140.0000.00717.58
8.1.130.0070.00017.82
8.1.120.0040.00417.36
8.1.110.0100.00017.49
8.1.100.0000.00817.48
8.1.90.0000.00717.41
8.1.80.0040.00417.38
8.1.70.0030.00317.48
8.1.60.0040.00417.53
8.1.50.0070.00017.49
8.1.40.0070.00317.57
8.1.30.0000.00817.64
8.1.20.0000.00817.58
8.1.10.0070.00017.57
8.1.00.0040.00417.52
8.0.300.0080.00018.77
8.0.290.0000.00717.18
8.0.280.0000.00718.43
8.0.270.0070.00017.26
8.0.260.0030.00616.92
8.0.250.0040.00416.90
8.0.240.0090.00016.91
8.0.230.0000.00716.88
8.0.220.0040.00416.95
8.0.210.0000.00716.95
8.0.200.0030.00317.01
8.0.190.0030.00316.91
8.0.180.0070.00016.87
8.0.170.0050.00317.00
8.0.160.0040.00416.95
8.0.150.0040.00416.78
8.0.140.0000.00816.88
8.0.130.0000.00513.36
8.0.120.0050.00216.93
8.0.110.0020.00516.85
8.0.100.0000.00816.86
8.0.90.0050.00216.93
8.0.80.0040.01016.93
8.0.70.0000.00816.78
8.0.60.0080.00017.08
8.0.50.0040.00416.84
8.0.30.0080.01117.06
8.0.20.0070.01517.40
8.0.10.0000.00817.16
8.0.00.0100.01016.69
7.4.330.0020.00215.00
7.4.320.0060.00016.42
7.4.300.0030.00316.44
7.4.290.0000.01116.59
7.4.280.0000.00916.43
7.4.270.0070.00016.53
7.4.260.0000.00816.64
7.4.250.0050.00216.37
7.4.240.0040.00416.55
7.4.230.0070.00016.70
7.4.220.0130.01016.70
7.4.210.0060.00916.50
7.4.200.0070.00016.45
7.4.190.0030.00316.54
7.4.160.0060.00916.35
7.4.150.0140.00317.40
7.4.140.0110.01117.86
7.4.130.0130.00516.48
7.4.120.0060.01116.52
7.4.110.0080.00816.53
7.4.100.0090.01216.56
7.4.90.0090.00816.43
7.4.80.0130.01019.39
7.4.70.0070.01016.46
7.4.60.0120.00616.51
7.4.50.0030.00316.50
7.4.40.0090.00622.77
7.4.30.0000.01516.54
7.4.00.0030.01015.21
7.3.330.0030.00313.43
7.3.320.0040.00413.28
7.3.310.0000.00816.42
7.3.300.0030.00316.34
7.3.290.0000.01416.36
7.3.280.0080.01016.40
7.3.270.0130.00317.40
7.3.260.0150.00316.50
7.3.250.0100.00716.36
7.3.240.0150.00316.43
7.3.230.0100.01416.64
7.3.210.0090.00616.50
7.3.200.0090.01419.39
7.3.190.0100.01216.39
7.3.180.0040.01116.48
7.3.170.0090.00616.59
7.3.160.0060.01016.70
7.3.120.0040.01415.11
7.3.10.0140.01116.69
7.3.00.0130.00716.71
7.2.330.0070.01016.43
7.2.320.0100.01016.57
7.2.310.0060.01216.75
7.2.300.0120.00916.44
7.2.290.0000.01816.72
7.2.130.0270.00716.98
7.2.120.0110.00717.03
7.2.110.0110.00716.73
7.2.100.0140.00916.91
7.2.90.0120.00317.01
7.2.80.0140.00317.12
7.2.70.0070.01016.96
7.2.60.0090.00916.91
7.2.50.0030.00616.98
7.2.40.0030.00916.92
7.2.30.0150.00316.77
7.2.20.0040.00816.84
7.2.10.0110.00416.56
7.2.00.0120.00518.06
7.1.250.0140.00415.87
7.1.200.0040.01115.76
7.1.70.0100.00017.26
7.1.60.0030.00817.33
7.1.50.0030.02216.70
7.1.00.0030.04322.43
7.0.200.0000.00916.76
7.0.140.0030.07321.95
7.0.60.0100.06719.87
7.0.50.0100.07717.88
7.0.40.0100.08720.13
7.0.30.0300.04020.20
7.0.20.0200.06020.23
7.0.10.0270.07320.07
7.0.00.0070.07320.23
5.6.280.0030.07320.92
5.6.210.0100.08020.48
5.6.200.0070.06318.29
5.6.190.0100.08020.33
5.6.180.4070.04020.46
5.6.170.0330.04720.41
5.6.160.0070.07020.54
5.6.150.0130.07718.16
5.6.140.0000.06318.22
5.6.130.0030.08318.14
5.6.120.0070.08320.98
5.6.110.0030.07321.00
5.6.100.0230.06720.89
5.6.90.0030.08021.13
5.6.80.0130.07320.38
5.6.70.0170.03020.50
5.5.350.0200.07720.33
5.5.340.0070.03718.05
5.5.330.0070.08320.27
5.5.320.0270.06320.42
5.5.310.0230.08020.35
5.5.300.0070.06717.98
5.5.290.0100.06317.97
5.5.280.0070.04020.64
5.5.270.0130.07020.89
5.5.260.0130.06320.79
5.5.250.0100.06320.68
5.5.240.0130.07720.35
5.4.450.0930.05319.34
5.4.440.0970.04719.70
5.4.430.0730.05019.53
5.4.420.0870.06319.62
5.4.410.0830.06319.32
5.4.400.0270.06318.83
5.4.390.0400.05718.46
5.4.380.0270.05318.50
5.4.370.0170.05018.58
5.4.360.0200.04318.46
5.4.350.0100.05212.02
5.4.340.0100.04412.01
5.4.320.0050.04312.50
5.4.310.0090.04312.49
5.4.300.0050.04012.50
5.4.290.0050.04212.49
5.4.280.0080.03612.39
5.4.270.0070.03612.39
5.4.260.0050.04912.39
5.4.250.0070.04212.39
5.4.240.0070.03712.39
5.4.230.0090.04212.38
5.4.220.0050.05212.39
5.4.210.0010.04212.38
5.4.200.0080.03912.38
5.4.190.0070.03712.38
5.4.180.0070.03512.38
5.4.170.0100.05318.83
5.4.160.0130.07018.77
5.4.150.0100.07019.01
5.4.140.0100.06716.56
5.4.130.0070.05016.41
5.4.120.0170.04316.41
5.4.110.0070.05716.65
5.4.100.0170.05716.41
5.4.90.0030.05316.40
5.4.80.0100.04716.30
5.4.70.0130.04016.46
5.4.60.0030.05716.63
5.4.50.0070.05316.59
5.4.40.0100.05716.44
5.4.30.0070.05016.37
5.4.20.0100.04316.45
5.4.10.0130.07016.37
5.4.00.0170.04015.86
5.3.290.0070.04712.80
5.3.280.0110.04312.70
5.3.270.0070.07714.43
5.3.260.0100.05014.68
5.3.250.0070.07314.77
5.3.240.0130.07014.64
5.3.230.0170.05314.81
5.3.220.0000.06714.64
5.3.210.0130.06714.54
5.3.200.0100.07314.55
5.3.190.0000.05714.54
5.3.180.0070.07714.39
5.3.170.0070.05014.64
5.3.160.0130.04714.57
5.3.150.0200.04014.63
5.3.140.0070.05314.57
5.3.130.0030.05314.52
5.3.120.0070.06714.37
5.3.110.0030.08014.70
5.3.100.0070.05014.00
5.3.90.0130.04314.11
5.3.80.0030.06714.10
5.3.70.0070.05314.02
5.3.60.0170.04014.05
5.3.50.0070.06714.12
5.3.40.0030.05313.98
5.3.30.0170.05714.05
5.3.20.0230.05313.91
5.3.10.0200.05713.63
5.3.00.0000.05313.70
5.2.170.0000.04711.23
5.2.160.0070.04011.29
5.2.150.0030.04311.04
5.2.140.0000.05011.14
5.2.130.0100.04311.18
5.2.120.0130.04711.16
5.2.110.0070.04011.17
5.2.100.0100.04711.05
5.2.90.0000.04311.25
5.2.80.0030.04011.14
5.2.70.0070.03711.31
5.2.60.0030.04011.03
5.2.50.0030.04011.07
5.2.40.0170.04010.96
5.2.30.0030.04310.80
5.2.20.0170.04011.17
5.2.10.0070.03311.01
5.2.00.0070.04710.78
5.1.60.0070.04010.23
5.1.50.0100.02710.05
5.1.40.0070.0479.95
5.1.30.0000.04010.41
5.1.20.0030.03710.42
5.1.10.0070.03310.10
5.1.00.0000.03710.04
5.0.50.0000.0308.59
5.0.40.0000.0308.38
5.0.30.0070.0378.29
5.0.20.0030.0238.25
5.0.10.0070.0238.17
5.0.00.0030.0508.16
4.4.90.0000.0237.09
4.4.80.0000.0237.09
4.4.70.0000.0237.09
4.4.60.0070.0177.09
4.4.50.0070.0177.09
4.4.40.0000.0377.09
4.4.30.0000.0277.09
4.4.20.0000.0237.09
4.4.10.0000.0237.09
4.4.00.0030.0337.09
4.3.110.0030.0207.09
4.3.100.0000.0307.09
4.3.90.0100.0177.09
4.3.80.0000.0407.09
4.3.70.0030.0177.09
4.3.60.0030.0207.09
4.3.50.0000.0307.09
4.3.40.0000.0337.09
4.3.30.0000.0337.09
4.3.20.0030.0277.09
4.3.10.0030.0237.09
4.3.00.0170.0176.71

preferences:
40.84 ms | 400 KiB | 5 Q