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; } } $arr = array(); $someObject = new SomeClass(3); $arr[] = $someObject; $arr[] = $someObject; $someOtherObject = new SomeClass(4); $arr[] = $someOtherObject; $arr[] = $someOtherObject; $arrFiltered = array_unique($arr); var_dump($arrFiltered);

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.0110.00418.55
8.3.50.0100.00621.19
8.3.40.0180.00018.88
8.3.30.0040.01119.04
8.3.20.0070.00020.16
8.3.10.0030.00623.61
8.3.00.0080.00317.75
8.2.180.0070.00716.63
8.2.170.0100.00322.96
8.2.160.0070.00720.38
8.2.150.0080.00024.18
8.2.140.0030.00524.66
8.2.130.0000.00826.16
8.2.120.0040.00422.31
8.2.110.0090.00020.30
8.2.100.0070.00418.09
8.2.90.0040.00419.23
8.2.80.0050.00317.97
8.2.70.0040.00417.59
8.2.60.0000.00817.93
8.2.50.0030.00618.07
8.2.40.0000.00819.91
8.2.30.0070.00018.06
8.2.20.0000.00717.75
8.2.10.0070.00018.06
8.2.00.0040.00417.74
8.1.280.0040.01125.92
8.1.270.0000.00823.73
8.1.260.0050.00226.35
8.1.250.0070.00028.09
8.1.240.0060.00324.00
8.1.230.0090.00319.15
8.1.220.0000.00817.76
8.1.210.0000.00918.77
8.1.200.0100.00017.23
8.1.190.0040.00417.23
8.1.180.0030.00618.10
8.1.170.0030.00618.46
8.1.160.0030.00621.95
8.1.150.0040.00418.86
8.1.140.0030.00617.39
8.1.130.0040.00417.78
8.1.120.0000.00717.41
8.1.110.0040.00417.41
8.1.100.0070.00017.32
8.1.90.0040.00417.46
8.1.80.0040.00417.32
8.1.70.0030.00317.37
8.1.60.0040.00417.62
8.1.50.0080.00017.58
8.1.40.0040.00417.40
8.1.30.0000.00917.59
8.1.20.0030.00617.66
8.1.10.0000.00917.57
8.1.00.0040.00417.36
8.0.300.0040.00418.77
8.0.290.0000.00716.74
8.0.280.0030.00318.35
8.0.270.0030.00317.28
8.0.260.0000.00617.07
8.0.250.0070.00016.97
8.0.240.0030.00316.93
8.0.230.0030.00316.83
8.0.220.0040.00716.90
8.0.210.0000.00616.91
8.0.200.0030.00316.94
8.0.190.0030.00616.91
8.0.180.0050.00216.89
8.0.170.0030.00516.93
8.0.160.0070.00016.81
8.0.150.0040.00416.86
8.0.140.0050.00216.83
8.0.130.0030.00313.39
8.0.120.0040.00416.84
8.0.110.0050.00216.82
8.0.100.0000.00716.84
8.0.90.0040.00416.69
8.0.80.0160.00316.88
8.0.70.0000.00816.93
8.0.60.0000.00816.70
8.0.50.0040.00416.67
8.0.30.0110.00717.07
8.0.20.0060.01217.40
8.0.10.0040.00416.93
8.0.00.0090.00816.71
7.4.330.0000.00515.00
7.4.320.0030.00316.54
7.4.300.0030.00316.61
7.4.290.0040.00416.45
7.4.280.0000.00716.59
7.4.270.0000.00716.50
7.4.260.0070.00016.48
7.4.250.0070.00016.56
7.4.240.0020.00516.48
7.4.230.0030.00516.63
7.4.220.0110.00716.67
7.4.210.0090.00616.57
7.4.200.0030.00316.32
7.4.160.0040.01116.62
7.4.150.0070.01117.40
7.4.140.0110.01117.86
7.4.130.0070.01116.61
7.4.120.0050.01316.53
7.4.110.0060.01016.39
7.4.100.0120.00616.36
7.4.90.0170.00716.52
7.4.80.0120.00619.39
7.4.70.0120.00416.33
7.4.60.0090.00616.54
7.4.50.0080.00016.34
7.4.40.0100.00716.29
7.4.30.0030.01316.56
7.4.00.0090.00915.00
7.3.330.0000.00513.29
7.3.320.0050.00013.30
7.3.310.0030.00316.12
7.3.300.0000.00716.18
7.3.290.0030.01216.35
7.3.280.0090.00916.33
7.3.270.0070.01017.40
7.3.260.0070.01016.32
7.3.240.0060.01016.37
7.3.230.0070.01516.41
7.3.210.0060.01016.48
7.3.200.0130.01019.39
7.3.190.0150.00716.36
7.3.180.0030.01316.38
7.3.170.0000.01716.51
7.3.160.0130.00316.32
7.3.10.0060.01016.58
7.3.00.0030.01016.26
7.2.330.0110.00616.28
7.2.320.0070.01016.64
7.2.310.0140.00316.61
7.2.300.0090.00916.29
7.2.290.0090.00916.30
7.2.130.0100.01016.77
7.2.120.0130.00316.47
7.2.110.0080.00616.77
7.2.100.0040.01316.73
7.2.90.0130.00316.36
7.2.80.0070.01016.68
7.2.70.0120.01216.84
7.2.60.0080.00916.50
7.2.50.0180.00016.92
7.2.40.0140.01016.91
7.2.30.0150.01216.78
7.2.20.0100.00716.98
7.2.10.0120.00916.67
7.2.00.0020.01418.22
7.1.250.0040.00915.44
7.1.200.0030.01315.61
7.1.100.0040.01118.11
7.1.70.0000.01017.12
7.1.60.0120.01219.32
7.1.50.0040.01816.96
7.1.00.0030.07722.51
7.0.200.0030.00716.67
7.0.140.0000.07721.93
7.0.60.0200.07319.91
7.0.50.0070.04717.73
7.0.40.0130.03320.27
7.0.30.0330.06320.09
7.0.20.0300.05320.08
7.0.10.0270.06320.31
7.0.00.0030.05720.12
5.6.280.0100.06721.05
5.6.210.0070.08320.71
5.6.200.0100.04718.19
5.6.190.0030.04020.63
5.6.180.0330.07720.55
5.6.170.0200.07720.45
5.6.160.0030.05020.43
5.6.150.0130.07018.18
5.6.140.0030.04018.17
5.6.130.0000.05318.11
5.6.120.0070.08020.99
5.6.110.0100.06721.09
5.6.100.0070.09021.03
5.6.90.0130.07720.94
5.6.80.0100.04720.29
5.6.70.4570.04020.53
5.5.350.0100.07020.29
5.5.340.0030.04017.92
5.5.330.0000.04720.35
5.5.320.0270.05320.27
5.5.310.0330.05720.35
5.5.300.0030.04017.92
5.5.290.0070.06317.97
5.5.280.0030.04720.88
5.5.270.0030.05320.76
5.5.260.0070.08320.88
5.5.250.0070.08320.77
5.5.240.0270.08020.29
5.4.450.0530.05319.45
5.4.440.0830.05319.55
5.4.430.1030.04019.23
5.4.420.0670.00019.55
5.4.410.0630.00019.29
5.4.400.0630.00019.33
5.4.390.0670.00019.09
5.4.380.0770.00019.16
5.4.370.0630.00019.09
5.4.360.0630.00019.12
5.4.350.0670.00019.09
5.4.340.0050.03912.02
5.4.320.0050.03812.50
5.4.310.0070.03712.50
5.4.300.0080.03712.50
5.4.290.0060.03912.50
5.4.280.0070.04112.40
5.4.270.0050.04412.40
5.4.260.0050.03812.40
5.4.250.0070.04112.40
5.4.240.0050.03612.40
5.4.230.0080.04212.39
5.4.220.0060.03612.39
5.4.210.0050.03612.39
5.4.200.0040.04712.39
5.4.190.0070.04012.39
5.4.180.0050.04512.39
5.4.170.0110.03512.40
5.4.160.0060.04112.39
5.4.150.0050.04112.39
5.4.140.0070.04112.07
5.4.130.0070.03612.06
5.4.120.0030.04012.02
5.4.110.0090.03312.02
5.4.100.0040.03812.02
5.4.90.0060.03712.02
5.4.80.0030.04312.01
5.4.70.0060.03412.01
5.4.60.0050.03512.01
5.4.50.0070.03812.01
5.4.40.0100.03412.00
5.4.30.0030.04012.00
5.4.20.0050.03712.00
5.4.10.0050.03512.00
5.4.00.0080.03411.48
5.3.290.0020.04712.80
5.3.280.0060.04012.71
5.3.270.0050.04312.72
5.3.260.0100.03812.72
5.3.250.0080.03812.72
5.3.240.0060.04312.71
5.3.230.0070.03612.71
5.3.220.0040.03812.68
5.3.210.0080.03912.68
5.3.200.0030.05612.68
5.3.190.0040.03912.68
5.3.180.0050.03812.67
5.3.170.0040.03812.67
5.3.160.0060.03612.68
5.3.150.0040.03812.67
5.3.140.0060.03612.66
5.3.130.0070.03812.66
5.3.120.0070.03812.66
5.3.110.0060.04012.66
5.3.100.0050.04512.12
5.3.90.0090.04212.11
5.3.80.0070.03912.09
5.3.70.0110.04712.10
5.3.60.0080.04912.08
5.3.50.0080.03612.04
5.3.40.0050.04012.03
5.3.30.0050.03811.99
5.3.20.0050.03711.78
5.3.10.0070.03611.73
5.3.00.0040.03811.72
5.2.170.0090.0289.23
5.2.160.0050.0299.23
5.2.150.0080.0349.23
5.2.140.0060.0329.23
5.2.130.0060.0289.18
5.2.120.0070.0269.18
5.2.110.0090.0299.20
5.2.100.0030.0339.19
5.2.90.0060.0319.18
5.2.80.0070.0369.18
5.2.70.0060.0299.19
5.2.60.0070.0279.13
5.2.50.0060.0349.10
5.2.40.0030.0309.07
5.2.30.0020.0349.06
5.2.20.0050.0289.04
5.2.10.0050.0328.95
5.2.00.0070.0268.82
5.1.60.0050.0268.09
5.1.50.0060.0228.09
5.1.40.0040.0258.07
5.1.30.0040.0308.42
5.1.20.0050.0258.45
5.1.10.0050.0288.16
5.1.00.0040.0268.16
5.0.50.0050.0196.64
5.0.40.0050.0196.50
5.0.30.0030.0316.32
5.0.20.0030.0196.29
5.0.10.0100.0136.25
5.0.00.0010.0326.25
4.4.90.0040.0214.77
4.4.80.0030.0164.75
4.4.70.0030.0164.76
4.4.60.0040.0154.76
4.4.50.0020.0174.77
4.4.40.0030.0274.70
4.4.30.0010.0184.76
4.4.20.0020.0164.85
4.4.10.0030.0154.85
4.4.00.0030.0254.76
4.3.110.0040.0144.67
4.3.100.0010.0174.67
4.3.90.0010.0164.64
4.3.80.0050.0264.58
4.3.70.0020.0154.63
4.3.60.0030.0144.63
4.3.50.0030.0164.62
4.3.40.0020.0264.53
4.3.30.0000.0183.30
4.3.20.0000.0183.28
4.3.10.0020.0153.24
4.3.00.0170.0307.34

preferences:
44.24 ms | 401 KiB | 5 Q