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 serialize($this); } } $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.0070.01018.33
8.3.50.0120.00921.98
8.3.40.0030.01618.66
8.3.30.0090.00919.22
8.3.20.0040.00420.21
8.3.10.0090.00023.66
8.3.00.0050.00319.38
8.2.180.0160.01016.36
8.2.170.0130.00722.96
8.2.160.0140.00020.35
8.2.150.0040.00424.18
8.2.140.0090.00024.66
8.2.130.0040.00426.16
8.2.120.0070.00021.98
8.2.110.0030.00620.90
8.2.100.0030.00817.84
8.2.90.0080.00018.02
8.2.80.0070.00417.97
8.2.70.0040.00418.16
8.2.60.0050.00318.05
8.2.50.0000.00818.32
8.2.40.0040.00420.50
8.2.30.0030.00521.10
8.2.20.0040.00417.67
8.2.10.0000.00818.04
8.2.00.0000.00917.72
8.1.280.0110.01125.92
8.1.270.0070.01123.79
8.1.260.0080.00026.35
8.1.250.0130.00328.09
8.1.240.0090.00020.43
8.1.230.0150.00020.82
8.1.220.0080.00017.78
8.1.210.0040.00418.77
8.1.200.0040.00417.47
8.1.190.0040.00417.36
8.1.180.0080.00018.10
8.1.170.0000.00818.52
8.1.160.0040.00418.83
8.1.150.0080.00018.81
8.1.140.0040.00417.48
8.1.130.0040.00417.74
8.1.120.0030.00317.47
8.1.110.0030.00617.51
8.1.100.0040.00417.50
8.1.90.0070.00017.42
8.1.80.0040.00417.36
8.1.70.0000.00817.44
8.1.60.0040.00417.49
8.1.50.0040.00417.52
8.1.40.0080.00017.48
8.1.30.0070.00317.55
8.1.20.0040.00417.50
8.1.10.0040.00417.40
8.1.00.0030.00517.46
8.0.300.0060.00319.52
8.0.290.0070.00316.75
8.0.280.0070.00018.41
8.0.270.0000.00717.16
8.0.260.0030.00317.18
8.0.250.0000.00716.99
8.0.240.0080.00016.91
8.0.230.0070.00016.95
8.0.220.0000.00716.85
8.0.210.0050.00316.88
8.0.200.0030.00617.02
8.0.190.0040.00416.82
8.0.180.0000.00816.95
8.0.170.0000.00816.81
8.0.160.0050.00316.91
8.0.150.0030.00316.72
8.0.140.0000.00816.89
8.0.130.0000.00513.31
8.0.120.0020.00516.82
8.0.110.0030.00316.90
8.0.100.0040.00416.76
8.0.90.0050.00216.77
8.0.80.0040.01116.86
8.0.70.0030.00516.77
8.0.60.0040.00416.96
8.0.50.0000.00816.67
8.0.30.0090.01317.06
8.0.20.0130.00717.40
8.0.10.0040.00416.89
8.0.00.0070.01316.82
7.4.330.0020.00215.00
7.4.320.0040.00416.47
7.4.300.0000.00716.61
7.4.290.0000.00716.51
7.4.280.0070.00416.50
7.4.270.0040.00416.56
7.4.260.0060.00316.60
7.4.250.0000.00816.54
7.4.240.0050.00216.58
7.4.230.0070.00016.50
7.4.220.0090.00916.54
7.4.210.0100.00316.66
7.4.200.0030.00316.61
7.4.160.0130.01016.65
7.4.150.0060.01217.40
7.4.140.0090.01017.86
7.4.130.0100.01316.45
7.4.120.0080.00916.37
7.4.110.0040.01816.69
7.4.100.0100.00716.32
7.4.90.0100.01316.42
7.4.80.0140.00319.39
7.4.70.0100.01016.64
7.4.60.0080.01216.52
7.4.50.0040.00416.32
7.4.40.0070.01016.32
7.4.30.0110.00516.41
7.4.00.0040.01114.97
7.3.330.0000.00513.20
7.3.320.0060.00013.20
7.3.310.0030.00316.16
7.3.300.0070.00016.20
7.3.290.0030.01616.29
7.3.280.0080.00916.25
7.3.270.0060.01317.40
7.3.260.0180.00016.28
7.3.240.0030.01416.52
7.3.230.0110.00616.48
7.3.210.0130.00316.23
7.3.200.0130.01019.39
7.3.190.0080.00916.53
7.3.180.0080.00816.29
7.3.170.0070.01016.41
7.3.160.0090.00616.48
7.3.10.0040.00716.48
7.3.00.0050.00516.40
7.2.330.0100.01316.64
7.2.320.0070.01116.39
7.2.310.0110.01516.36
7.2.300.0080.00816.67
7.2.290.0050.01416.48
7.2.130.0040.00916.86
7.2.120.0070.00416.88
7.2.110.0040.00816.67
7.2.100.0060.00616.95
7.2.90.0060.00516.95
7.2.80.0070.00316.95
7.2.70.0050.00716.92
7.2.60.0070.00416.88
7.2.50.0060.00616.94
7.2.40.0030.01016.91
7.2.30.0090.00416.92
7.2.20.0060.00616.77
7.2.10.0080.00716.74
7.2.00.0060.00416.97
7.1.250.0030.00615.75
7.1.200.0070.00715.84
7.1.100.0040.00717.65
7.1.70.0030.01316.91
7.1.60.0140.01019.32
7.1.50.0000.01516.82
7.1.00.0070.07322.57
7.0.200.0000.01016.38
7.0.140.0000.07721.95
7.0.70.4430.03720.14
7.0.60.0100.08019.91
7.0.50.0000.04317.87
7.0.40.0030.08720.04
7.0.30.0170.04020.25
7.0.20.0300.06720.09
7.0.10.0300.07320.19
7.0.00.0070.08720.32
5.6.280.0000.07720.87
5.6.210.0170.07320.47
5.6.200.0030.04318.20
5.6.190.0070.04320.77
5.6.180.0370.04320.46
5.6.170.0300.06320.50
5.6.160.0030.04320.54
5.6.150.0030.07318.14
5.6.140.0100.07018.14
5.6.130.0000.09018.17
5.6.120.0000.04320.90
5.6.110.0070.06321.14
5.6.100.0130.08021.02
5.6.90.0130.08320.98
5.6.80.0070.07720.41
5.6.70.0270.07720.51
5.5.350.0130.03720.45
5.5.340.0130.07717.97
5.5.330.0000.04320.37
5.5.320.0100.06720.41
5.5.310.0270.06720.51
5.5.300.0030.04017.98
5.5.290.0100.07718.01
5.5.280.0200.06320.83
5.5.270.0000.08720.93
5.5.260.0070.08320.87
5.5.250.0130.08020.80
5.5.240.0030.07320.04
5.4.450.0930.06319.46
5.4.440.0500.04719.38
5.4.430.0100.06019.47
5.4.420.0630.00019.31
5.4.410.0630.00019.28
5.4.400.0600.00019.08
5.4.390.0630.00019.07
5.4.380.0630.00019.13
5.4.370.0630.00019.07
5.4.360.0600.00019.04
5.4.350.0670.00019.06
5.4.340.0080.04112.02
5.4.320.0060.03612.50
5.4.310.0070.04012.50
5.4.300.0060.03612.50
5.4.290.0050.04812.50
5.4.280.0050.04212.40
5.4.270.0040.03812.40
5.4.260.0100.03612.39
5.4.250.0040.04912.40
5.4.240.0070.04212.40
5.4.230.0080.04412.39
5.4.220.0070.04012.39
5.4.210.0060.03612.39
5.4.200.0080.03512.39
5.4.190.0040.03712.39
5.4.180.0090.03712.39
5.4.170.0110.03612.40
5.4.160.0080.03512.40
5.4.150.0060.04012.39
5.4.140.0090.03712.07
5.4.130.0050.04212.06
5.4.120.0070.04112.02
5.4.110.0060.03512.02
5.4.100.0060.03512.02
5.4.90.0050.04012.02
5.4.80.0080.03512.02
5.4.70.0060.03512.01
5.4.60.0120.04612.02
5.4.50.0050.03612.01
5.4.40.0070.03712.00
5.4.30.0040.03712.00
5.4.20.0060.03512.00
5.4.10.0060.03512.00
5.4.00.0090.03811.48
5.3.290.0070.03812.80
5.3.280.0060.03712.71
5.3.270.0060.03912.73
5.3.260.0050.03912.72
5.3.250.0090.03612.71
5.3.240.0030.04712.72
5.3.230.0040.04012.71
5.3.220.0070.03612.68
5.3.210.0040.04012.68
5.3.200.0030.04412.68
5.3.190.0080.04012.68
5.3.180.0030.04712.68
5.3.170.0030.04312.67
5.3.160.0070.04212.67
5.3.150.0110.03812.67
5.3.140.0070.03812.66
5.3.130.0080.04312.66
5.3.120.0040.04112.66
5.3.110.0060.03812.66
5.3.100.0070.03712.12
5.3.90.0050.03712.11
5.3.80.0100.03212.09
5.3.70.0080.03412.09
5.3.60.0070.03612.08
5.3.50.0060.04512.03
5.3.40.0080.03412.03
5.3.30.0070.04011.99
5.3.20.0060.03811.79
5.3.10.0080.03211.73
5.3.00.0060.03611.72
5.2.170.0040.0329.22
5.2.160.0030.0319.22
5.2.150.0030.0419.23
5.2.140.0050.0349.22
5.2.130.0060.0299.18
5.2.120.0030.0309.18
5.2.110.0030.0309.20
5.2.100.0040.0389.19
5.2.90.0040.0299.19
5.2.80.0080.0269.18
5.2.70.0040.0309.18
5.2.60.0060.0339.13
5.2.50.0060.0289.09
5.2.40.0050.0339.07
5.2.30.0100.0299.06
5.2.20.0080.0309.04
5.2.10.0040.0298.95
5.2.00.0030.0318.82
5.1.60.0080.0218.09
5.1.50.0040.0258.08
5.1.40.0040.0268.07
5.1.30.0040.0268.42
5.1.20.0100.0288.45
5.1.10.0040.0278.16
5.1.00.0040.0338.16
5.0.50.0050.0206.65
5.0.40.0020.0206.50
5.0.30.0040.0316.32
5.0.20.0040.0196.29
5.0.10.0060.0206.26
5.0.00.0040.0316.25
4.4.90.0050.0154.78
4.4.80.0030.0174.75
4.4.70.0040.0164.75
4.4.60.0050.0174.75
4.4.50.0040.0154.77
4.4.40.0020.0314.71
4.4.30.0010.0184.76
4.4.20.0040.0144.85
4.4.10.0040.0154.85
4.4.00.0030.0314.75
4.3.110.0030.0164.67
4.3.100.0040.0204.67
4.3.90.0030.0144.64
4.3.80.0050.0244.58
4.3.70.0010.0164.63
4.3.60.0030.0144.63
4.3.50.0040.0144.62
4.3.40.0050.0274.54
4.3.30.0010.0213.30
4.3.20.0020.0193.28
4.3.10.0030.0193.23
4.3.00.0030.0207.43

preferences:
47.95 ms | 401 KiB | 5 Q