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'; $fas = new MyClass(); $fas->prop = 'test3'; $test = array($foo, $bar, $bam, $fas); 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.60.0100.01018.31
8.3.50.0110.00418.32
8.3.40.0090.00618.68
8.3.30.0060.00918.66
8.3.20.0000.00918.80
8.3.10.0040.00420.86
8.3.00.0080.00023.66
8.2.180.0130.00918.29
8.2.170.0000.01422.96
8.2.160.0030.01219.32
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0070.00326.16
8.2.120.0120.00621.12
8.2.110.0060.00322.25
8.2.100.0120.00019.45
8.2.90.0050.00319.17
8.2.80.0030.00617.97
8.2.70.0060.00317.80
8.2.60.0000.00817.91
8.2.50.0000.00918.10
8.2.40.0030.00519.19
8.2.30.0020.00519.23
8.2.20.0030.00518.06
8.2.10.0000.00718.05
8.2.00.0050.00219.27
8.1.280.0070.00725.92
8.1.270.0000.00822.05
8.1.260.0160.00426.35
8.1.250.0070.00028.09
8.1.240.0090.00022.14
8.1.230.0070.00422.19
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0060.00317.36
8.1.190.0030.00517.13
8.1.180.0060.00318.10
8.1.170.0030.00618.64
8.1.160.0000.00718.79
8.1.150.0000.00718.78
8.1.140.0030.00517.69
8.1.130.0000.00720.70
8.1.120.0040.00417.48
8.1.110.0020.00517.48
8.1.100.0000.00717.40
8.1.90.0020.00517.45
8.1.80.0030.00317.43
8.1.70.0000.01117.28
8.1.60.0000.00817.58
8.1.50.0000.00817.40
8.1.40.0000.00717.51
8.1.30.0050.00317.65
8.1.20.0050.00517.57
8.1.10.0030.00617.42
8.1.00.0060.00317.33
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0000.00718.35
8.0.270.0000.00717.20
8.0.260.0000.00717.21
8.0.250.0000.00716.93
8.0.240.0040.00416.96
8.0.230.0070.00016.89
8.0.220.0000.00716.91
8.0.210.0000.00716.77
8.0.200.0060.00016.95
8.0.190.0000.00716.81
8.0.180.0000.00716.82
8.0.170.0030.00616.79
8.0.160.0000.00816.91
8.0.150.0030.01016.82
8.0.140.0050.00216.83
8.0.130.0050.00313.32
8.0.120.0060.00316.86
8.0.110.0000.00816.77
8.0.100.0030.00516.78
8.0.90.0000.00816.93
8.0.80.0090.00816.86
8.0.70.0040.00416.92
8.0.60.0000.00816.88
8.0.50.0000.00716.85
8.0.30.0080.01017.08
8.0.20.0100.01217.40
8.0.10.0000.00816.85
8.0.00.0120.00516.66
7.4.330.0030.00315.55
7.4.320.0030.00316.64
7.4.300.0030.00316.51
7.4.290.0000.00716.55
7.4.280.0040.00416.59
7.4.270.0030.00316.44
7.4.260.0070.00016.43
7.4.250.0060.00316.57
7.4.240.0030.00316.52
7.4.230.0070.00016.63
7.4.220.0000.00716.51
7.4.210.0050.01016.42
7.4.200.0040.00416.61
7.4.160.0100.00716.48
7.4.140.0080.01117.86
7.4.130.0120.00616.53
7.4.120.0120.00516.47
7.4.110.0030.01416.63
7.4.100.0080.00916.48
7.4.90.0120.00616.42
7.4.80.0110.00919.39
7.4.70.0090.00716.43
7.4.60.0070.01016.43
7.4.50.0090.00316.44
7.4.40.0100.00716.29
7.4.00.0000.01514.82
7.3.330.0020.00213.36
7.3.320.0050.00013.34
7.3.310.0070.00016.39
7.3.300.0030.00316.23
7.3.290.0070.00016.41
7.3.280.0080.01216.36
7.3.260.0090.00716.45
7.3.240.0140.00516.49
7.3.230.0120.00616.30
7.3.210.0120.01216.53
7.3.200.0090.00616.32
7.3.190.0060.00916.23
7.3.180.0060.00916.66
7.3.170.0080.00816.27
7.3.160.0090.00616.38
7.2.330.0060.01716.31
7.2.320.0150.00316.44
7.2.310.0230.01416.76
7.2.300.0100.01316.30
7.2.290.0170.00816.66
7.2.110.0080.00416.45
7.2.70.0910.01014.85
7.2.60.0800.01014.81
7.2.50.0830.00014.79
7.2.40.1150.00615.06
7.2.30.0710.00714.79
7.2.20.0690.01315.04
7.2.10.0700.01314.85
7.2.00.0780.00415.11
7.1.200.0070.00715.62
7.1.170.1310.00713.88
7.1.160.0810.00713.80
7.1.150.0740.00313.82
7.1.140.0760.00713.87
7.1.130.0740.00713.97
7.1.120.0760.00613.71
7.1.110.1310.00313.74
7.1.100.1270.01013.64
7.1.90.1680.00613.78
7.1.80.1960.01013.78
7.1.70.1460.00714.01
7.1.60.2070.00731.99
7.1.50.3100.00331.48
7.1.40.2220.01031.84
7.1.30.2240.01331.52
7.1.20.2260.01331.68
7.1.10.2460.01013.71
7.1.00.1570.01313.77

preferences:
56.42 ms | 400 KiB | 5 Q