3v4l.org

run code in 300+ PHP versions simultaneously
<?php class SomeClass { protected $someProperty; public function __construct($prop) { $this->someProperty = $prop; } public function getSomeProperty() { return $this->someProperty; } public function __toString() { return $this->getSomeProperty(); } } $arr = array(); $someObject = new SomeClass(3); $arr[] = $someObject; $arr[] = $someObject; $someOtherObject = new SomeClass(4); $arr[] = $someOtherObject; $arr[] = $someOtherObject; $arrFiltered = array_unique($arr);

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.0090.00618.43
8.3.50.0110.01221.21
8.3.40.0040.01118.89
8.3.30.0030.01019.27
8.3.20.0080.00020.22
8.3.10.0040.00423.60
8.3.00.0000.01017.50
8.2.180.0090.00616.50
8.2.170.0040.01122.96
8.2.160.0100.00320.47
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0030.00522.03
8.2.110.0050.00522.11
8.2.100.0100.00317.75
8.2.90.0040.00419.34
8.2.80.0050.00317.97
8.2.70.0040.00417.50
8.2.60.0060.00317.93
8.2.50.0040.00418.07
8.2.40.0080.00019.95
8.2.30.0000.00818.04
8.2.20.0040.00417.80
8.2.10.0030.00517.98
8.2.00.0030.00717.62
8.1.280.0140.00725.92
8.1.270.0000.00822.19
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0080.00023.97
8.1.230.0110.00017.42
8.1.220.0050.00317.79
8.1.210.0000.00818.77
8.1.200.0030.00617.11
8.1.190.0050.00317.35
8.1.180.0020.00518.10
8.1.170.0000.00818.65
8.1.160.0020.00521.92
8.1.150.0070.00018.88
8.1.140.0050.00217.44
8.1.130.0000.00717.75
8.1.120.0040.00317.41
8.1.110.0080.00017.36
8.1.100.0000.00717.34
8.1.90.0040.00417.50
8.1.80.0000.00717.41
8.1.70.0030.00317.44
8.1.60.0060.00317.59
8.1.50.0030.00617.42
8.1.40.0050.00317.55
8.1.30.0040.00417.60
8.1.20.0050.00317.62
8.1.10.0040.00417.57
8.1.00.0000.00817.60
8.0.300.0040.00418.77
8.0.290.0060.00316.75
8.0.280.0000.00718.38
8.0.270.0040.00417.21
8.0.260.0040.00417.25
8.0.250.0000.00716.80
8.0.240.0000.00717.00
8.0.230.0040.00416.99
8.0.220.0000.00716.78
8.0.210.0030.00316.78
8.0.200.0080.00016.95
8.0.190.0070.00016.92
8.0.180.0000.00916.97
8.0.170.0040.00416.77
8.0.160.0030.00316.84
8.0.150.0040.00416.90
8.0.140.0070.00016.73
8.0.130.0030.00313.28
8.0.120.0080.00016.81
8.0.110.0040.00316.85
8.0.100.0030.00316.93
8.0.90.0070.00016.76
8.0.80.0100.00716.87
8.0.70.0050.00216.88
8.0.60.0040.00416.75
8.0.50.0030.00516.83
8.0.30.0100.00917.03
8.0.20.0110.01217.40
8.0.10.0000.00816.91
8.0.00.0080.01016.79
7.4.330.0000.00515.00
7.4.320.0060.00016.44
7.4.300.0060.00016.49
7.4.290.0040.00416.53
7.4.280.0040.00416.63
7.4.270.0030.00316.49
7.4.260.0070.00016.45
7.4.250.0040.00416.48
7.4.240.0040.00416.53
7.4.230.0000.00716.50
7.4.220.0090.00916.55
7.4.210.0100.00616.57
7.4.200.0050.00316.43
7.4.160.0170.00416.47
7.4.150.0110.00717.40
7.4.140.0140.00817.86
7.4.130.0090.00916.48
7.4.120.0060.01116.62
7.4.110.0150.00616.42
7.4.100.0100.00716.44
7.4.90.0060.01016.25
7.4.80.0070.01019.39
7.4.70.0060.01116.64
7.4.60.0060.00916.50
7.4.50.0000.00816.36
7.4.40.0120.00616.47
7.4.30.0130.00316.47
7.4.00.0030.01414.81
7.3.330.0000.00613.30
7.3.320.0070.00013.32
7.3.310.0000.00816.31
7.3.300.0000.00716.34
7.3.290.0110.00816.29
7.3.280.0090.00816.31
7.3.270.0090.00917.40
7.3.260.0030.01416.29
7.3.250.0120.00816.33
7.3.240.0090.00916.29
7.3.230.0100.00716.39
7.3.210.0110.00516.36
7.3.200.0120.00819.39
7.3.190.0030.01316.34
7.3.180.0090.00616.29
7.3.170.0070.01016.54
7.3.160.0070.00716.31
7.3.10.0060.00916.66
7.3.00.0040.00416.74
7.2.330.0140.00416.29
7.2.320.0060.01216.47
7.2.310.0060.01116.42
7.2.300.0100.01016.37
7.2.290.0090.00816.56
7.2.130.0000.01216.97
7.2.120.0000.01216.65
7.2.110.0100.00416.70
7.2.100.0030.01216.87
7.2.90.0000.01016.75
7.2.80.0000.01016.98
7.2.70.0030.01316.83
7.2.60.0020.01116.62
7.2.50.0030.00616.71
7.2.40.0000.01616.59
7.2.30.0040.01116.83
7.2.20.0040.00417.10
7.2.10.0040.00816.96
7.2.00.0050.00717.95
7.1.250.0070.00715.80
7.1.200.0230.00315.62
7.1.100.0040.00817.93
7.1.70.0000.00717.02
7.1.60.0060.01819.32
7.1.50.0090.01616.95
7.1.00.0070.07322.30
7.0.200.0040.01115.12
7.0.140.0030.07322.00
7.0.60.0070.03719.98
7.0.50.0070.07017.88
7.0.40.0100.04720.38
7.0.30.0300.07720.06
7.0.20.0330.04320.22
7.0.10.0070.04020.06
7.0.00.0130.07320.36
5.6.280.0030.07320.99
5.6.210.0100.07720.77
5.6.200.0000.07018.16
5.6.190.0000.04720.55
5.6.180.0200.04320.55
5.6.170.0400.07020.71
5.6.160.0070.09020.55
5.6.150.0100.08018.17
5.6.140.0000.06018.11
5.6.130.0130.07318.15
5.6.120.0100.08320.94
5.6.110.0030.09021.05
5.6.100.0000.09020.99
5.6.90.0100.08021.01
5.6.80.0030.04020.41
5.5.350.0100.03720.40
5.5.340.0200.06717.99
5.5.330.0070.08320.28
5.5.320.0370.06020.24
5.5.310.0400.07020.24
5.5.300.0070.03717.99
5.5.290.0000.06318.06
5.5.280.0130.05020.78
5.5.270.0130.04720.78
5.5.260.0100.08720.87
5.5.250.0070.05320.69
5.5.240.0300.06320.26
5.4.450.0630.05719.31
5.4.440.0770.05019.60
5.4.430.0630.05719.57
5.4.420.0670.00019.56
5.4.410.0630.00019.34
5.4.400.0630.00019.13
5.4.390.0630.00019.05
5.4.380.0630.00019.21
5.4.370.0630.00019.21
5.4.360.0600.00019.06
5.4.350.0670.00019.04
5.4.340.0120.03912.02
5.4.320.0040.04512.50
5.4.310.0070.05212.50
5.4.300.0060.05212.51
5.4.290.0060.04212.50
5.4.280.0050.03712.40
5.4.270.0080.04712.40
5.4.260.0100.04812.40
5.4.250.0110.04912.40
5.4.240.0070.05212.40
5.4.230.0080.04512.39
5.4.220.0090.03812.39
5.4.210.0080.03912.39
5.4.200.0050.04412.39
5.4.190.0100.03612.39
5.4.180.0060.04012.39
5.4.170.0050.03712.39
5.4.160.0060.03612.39
5.4.150.0050.03712.39
5.4.140.0060.03712.07
5.4.130.0050.04012.06
5.4.120.0070.03512.02
5.4.110.0020.03812.02
5.4.100.0080.03312.01
5.4.90.0060.03712.02
5.4.80.0060.03712.02
5.4.70.0040.03712.02
5.4.60.0060.03512.01
5.4.50.0040.03912.01
5.4.40.0060.03512.00
5.4.30.0100.03312.00
5.4.20.0060.03712.00
5.4.10.0070.03311.99
5.4.00.0050.03811.48
5.3.290.0080.03912.80
5.3.280.0070.03712.71
5.3.270.0060.03912.73
5.3.260.0070.03812.71
5.3.250.0060.03712.72
5.3.240.0100.03412.72
5.3.230.0080.03612.70
5.3.220.0050.04212.68
5.3.210.0070.04312.68
5.3.200.0130.03312.68
5.3.190.0050.04112.68
5.3.180.0090.03412.67
5.3.170.0060.03612.67
5.3.160.0090.03212.67
5.3.150.0070.03512.67
5.3.140.0050.04112.66
5.3.130.0050.04512.66
5.3.120.0050.04112.66
5.3.110.0070.03812.66
5.3.100.0050.03712.13
5.3.90.0050.03712.11
5.3.80.0070.03712.10
5.3.70.0060.04012.09
5.3.60.0080.03712.08
5.3.50.0060.03712.03
5.3.40.0060.03712.04
5.3.30.0070.03711.99
5.3.20.0060.03911.77
5.3.10.0030.03811.73
5.3.00.0070.03611.72
5.2.170.0040.0329.23
5.2.160.0030.0319.23
5.2.150.0030.0329.23
5.2.140.0080.0279.23
5.2.130.0060.0299.19
5.2.120.0020.0329.19
5.2.110.0080.0349.20
5.2.100.0050.0289.19
5.2.90.0060.0349.19
5.2.80.0050.0309.18
5.2.70.0050.0339.19
5.2.60.0080.0279.13
5.2.50.0040.0319.10
5.2.40.0050.0289.07
5.2.30.0060.0289.06
5.2.20.0050.0299.05
5.2.10.0070.0278.95
5.2.00.0070.0358.82
5.1.60.0100.0228.09
5.1.50.0030.0258.08
5.1.40.0050.0238.07
5.1.30.0050.0268.42
5.1.20.0030.0278.45
5.1.10.0070.0238.16
5.1.00.0060.0308.16
5.0.50.0030.0216.65
5.0.40.0060.0176.50
5.0.30.0040.0316.32
5.0.20.0020.0216.29
5.0.10.0040.0206.26
5.0.00.0050.0306.25
4.4.90.0030.0184.78
4.4.80.0060.0144.75
4.4.70.0020.0164.75
4.4.60.0040.0144.75
4.4.50.0030.0154.77
4.4.40.0040.0264.70
4.4.30.0030.0154.76
4.4.20.0040.0154.84
4.4.10.0040.0184.85
4.4.00.0040.0254.76
4.3.110.0020.0164.67
4.3.100.0040.0134.66
4.3.90.0020.0164.64
4.3.80.0070.0284.58
4.3.70.0020.0214.63
4.3.60.0030.0154.63
4.3.50.0020.0164.63
4.3.40.0030.0244.54
4.3.30.0010.0173.30
4.3.20.0020.0163.28
4.3.10.0030.0153.24
4.3.00.0100.0237.16

preferences:
37.86 ms | 401 KiB | 5 Q