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 = 'bla'; $test = array($foo, $bar, $bam); 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.0140.00716.75
8.3.50.0100.00718.25
8.3.40.0040.01118.46
8.3.30.0070.00719.27
8.3.20.0030.00620.34
8.3.10.0100.00018.75
8.3.00.0040.00419.38
8.2.180.0140.00416.63
8.2.170.0070.00722.96
8.2.160.0070.01120.39
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0050.00321.02
8.2.110.0040.00422.07
8.2.100.0110.00017.78
8.2.90.0070.00019.23
8.2.80.0030.00617.97
8.2.70.0080.00017.63
8.2.60.0040.00418.03
8.2.50.0000.00818.07
8.2.40.0000.00818.16
8.2.30.0000.00719.38
8.2.20.0040.00417.59
8.2.10.0040.00418.05
8.2.00.0000.00817.79
8.1.270.0030.00623.92
8.1.260.0000.00726.35
8.1.250.0080.00028.09
8.1.240.0090.00023.91
8.1.230.0060.00619.12
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.36
8.1.190.0040.00417.35
8.1.180.0060.00318.10
8.1.170.0040.00418.57
8.1.160.0040.00422.00
8.1.150.0030.00518.85
8.1.140.0040.00417.45
8.1.130.0070.00017.87
8.1.120.0040.00417.45
8.1.110.0050.00217.36
8.1.100.0040.00417.48
8.1.90.0030.00317.50
8.1.80.0000.00717.43
8.1.70.0040.00417.46
8.1.60.0040.00817.56
8.1.50.0000.00817.51
8.1.40.0000.00817.52
8.1.30.0060.00317.52
8.1.20.0000.00717.61
8.1.10.0000.00717.58
8.1.00.0040.00417.52
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0000.00718.44
8.0.270.0000.00817.17
8.0.260.0030.00317.26
8.0.250.0040.00416.86
8.0.240.0030.00616.96
8.0.230.0030.00316.95
8.0.220.0040.00416.84
8.0.210.0070.00016.86
8.0.200.0070.00016.87
8.0.190.0000.00816.93
8.0.180.0040.00416.88
8.0.170.0060.00316.82
8.0.160.0050.00516.85
8.0.150.0000.00716.67
8.0.140.0030.00516.83
8.0.130.0030.00313.29
8.0.120.0000.00916.84
8.0.110.0040.00416.92
8.0.100.0030.00516.91
8.0.90.0040.00416.79
8.0.80.0070.00716.88
8.0.70.0000.00816.84
8.0.60.0030.00616.96
8.0.50.0040.00416.90
8.0.30.0050.01817.21
8.0.20.0130.00517.40
8.0.10.0040.00417.06
8.0.00.0120.00616.87
7.4.330.0050.00015.12
7.4.320.0060.00016.60
7.4.300.0000.00616.66
7.4.290.0000.01016.50
7.4.280.0040.00416.45
7.4.270.0040.00416.65
7.4.260.0000.00716.49
7.4.250.0040.00416.59
7.4.240.0000.00716.57
7.4.230.0000.00716.68
7.4.220.0140.00316.54
7.4.210.0070.00716.68
7.4.200.0070.00016.69
7.4.160.0090.00616.67
7.4.150.0110.00817.40
7.4.140.0070.01217.86
7.4.130.0090.00716.59
7.4.120.0130.00916.46
7.4.110.0130.00916.45
7.4.100.0160.00416.47
7.4.90.0100.00716.60
7.4.80.0030.01319.39
7.4.70.0070.01016.59
7.4.60.0070.01316.48
7.4.50.0000.00816.41
7.4.40.0120.00616.49
7.4.30.0090.00616.51
7.4.00.0030.01415.05
7.3.330.0000.00613.27
7.3.320.0020.00213.33
7.3.310.0070.00016.26
7.3.300.0030.00316.28
7.3.290.0060.00916.36
7.3.280.0050.01016.33
7.3.270.0150.00317.40
7.3.260.0140.00416.34
7.3.250.0110.00616.29
7.3.240.0150.00816.59
7.3.230.0060.01616.50
7.3.210.0140.00316.54
7.3.200.0030.01319.39
7.3.190.0060.00916.59
7.3.180.0030.01316.17
7.3.170.0080.00816.46
7.3.160.0060.00916.36
7.2.330.0090.00816.74
7.2.320.0160.00016.77
7.2.310.0100.00616.72
7.2.300.0090.00616.34
7.2.290.0030.01416.46
7.2.00.0060.00619.38
7.1.100.0070.01018.07
7.1.70.0000.00817.21
7.1.60.0110.01419.61
7.1.50.0000.01116.88
7.1.00.0000.08022.57
7.0.200.0030.00616.81
7.0.140.0070.07322.18
7.0.60.0030.08720.03
7.0.50.0100.04017.91
7.0.40.0030.04320.13
7.0.30.0270.05020.06
7.0.20.0370.07320.20
7.0.10.0030.06320.15
7.0.00.0030.04020.20
5.6.280.0000.07720.89
5.6.210.0030.04320.63
5.6.200.0070.08018.16
5.6.190.0170.07320.55
5.6.180.0370.03720.50
5.6.170.0300.05020.55
5.6.160.0070.08020.43
5.6.150.0130.05318.23
5.6.140.0100.06718.18
5.6.130.0100.07718.14
5.6.120.0030.04020.79
5.6.110.0130.07721.11
5.6.100.0030.06321.00
5.6.90.0070.08721.07
5.6.80.0070.06020.41
5.5.350.0130.04020.43
5.5.340.0070.04318.03
5.5.330.0130.04720.56
5.5.320.0300.07020.25
5.5.310.0270.04720.34
5.5.300.0100.04318.08
5.5.290.0070.08717.96
5.5.280.0030.08020.98
5.5.270.0070.06020.85
5.5.260.0070.08320.64
5.5.250.0070.04020.70
5.5.240.0270.07020.19
5.4.450.0330.05019.52
5.4.440.0800.04319.30
5.4.430.0370.05719.22
5.4.420.0700.05719.21
5.4.410.0700.05719.32
5.4.400.0300.04718.96
5.4.390.0600.06719.31
5.4.380.0300.05318.62
5.4.370.0330.04718.79
5.4.360.0270.05018.69
5.4.350.0300.04318.78
5.4.340.0300.05018.78
5.4.320.0040.04512.50
5.4.310.0070.04312.49
5.4.300.0090.03612.49
5.4.290.0100.04212.49
5.4.280.0090.04312.39
5.4.270.0060.03812.39
5.4.260.0120.03912.39
5.4.250.0050.03712.39
5.4.240.0070.04112.39
5.4.230.0110.03912.38
5.4.220.0100.04012.38
5.4.210.0070.04012.38
5.4.200.0090.04012.38
5.4.190.0100.04212.38
5.4.180.0050.04012.38
5.4.170.0100.03712.39
5.4.160.0060.03912.38
5.4.150.0100.04212.38
5.4.140.0100.03312.06
5.4.130.0070.04112.05
5.4.120.0080.03812.01
5.4.110.0090.04112.00
5.4.100.0100.03812.01
5.4.90.0130.04212.01
5.4.80.0120.03912.01
5.4.70.0080.04112.00
5.4.60.0080.03912.01
5.4.50.0090.04012.00
5.4.40.0070.03912.00
5.4.30.0110.03211.98
5.4.20.0070.04411.99
5.4.10.0060.04811.99
5.4.00.0040.03711.48
5.3.290.0090.03812.80
5.3.280.0070.03812.71
5.3.270.0050.04112.73
5.3.260.0060.04512.72
5.3.250.0060.03812.72
5.3.240.0070.03712.72
5.3.230.0040.03912.71
5.3.220.0100.03312.68
5.3.210.0080.04312.68
5.3.200.0070.03712.68
5.3.190.0070.03912.68
5.3.180.0090.04212.68
5.3.170.0090.03712.67
5.3.160.0060.03612.68
5.3.150.0030.03912.67
5.3.140.0130.04412.66
5.3.130.0110.03612.66
5.3.120.0080.04512.66
5.3.110.0080.04612.66
5.3.100.0070.03712.12
5.3.90.0090.03812.09
5.3.80.0050.05312.09
5.3.70.0090.03812.08
5.3.60.0090.03812.07
5.3.50.0100.03812.02
5.3.40.0060.04412.02
5.3.30.0050.04511.97
5.3.20.0060.04211.76
5.3.10.0080.03411.72
5.3.00.0080.03911.71
5.2.170.0030.0329.21
5.2.160.0030.0319.21
5.2.150.0060.0309.21
5.2.140.0060.0299.21
5.2.130.0040.0309.17
5.2.120.0050.0299.17
5.2.110.0050.0309.18
5.2.100.0050.0319.17
5.2.90.0040.0309.18
5.2.80.0120.0349.16
5.2.70.0060.0339.16
5.2.60.0030.0369.12
5.2.50.0040.0369.09
5.2.40.0090.0329.06
5.2.30.0090.0359.04
5.2.20.0040.0299.03
5.2.10.0080.0348.94
5.2.00.0070.0358.80
5.1.60.0060.0268.08
5.1.50.0040.0258.07
5.1.40.0070.0278.06
5.1.30.0090.0268.41
5.1.20.0080.0328.43
5.1.10.0100.0258.15
5.1.00.0040.0328.16
5.0.50.0040.0286.64
5.0.40.0030.0236.49
5.0.30.0050.0306.31
5.0.20.0040.0196.27
5.0.10.0040.0226.25
5.0.00.0060.0326.24
4.4.90.0020.0194.78
4.4.80.0050.0164.75
4.4.70.0030.0154.76
4.4.60.0060.0134.75
4.4.50.0030.0154.77
4.4.40.0000.0284.71
4.4.30.0030.0164.76
4.4.20.0030.0154.84
4.4.10.0040.0144.85
4.4.00.0030.0244.76
4.3.110.0040.0144.66
4.3.100.0030.0144.66
4.3.90.0020.0174.63
4.3.80.0020.0304.58
4.3.70.0010.0164.63
4.3.60.0040.0204.63
4.3.50.0020.0224.62
4.3.40.0040.0274.54
4.3.30.0050.0183.30
4.3.20.0040.0173.28
4.3.10.0030.0173.24
4.3.00.0170.01714.59

preferences:
55.3 ms | 400 KiB | 5 Q