3v4l.org

run code in 300+ PHP versions simultaneously
<?php class TestClass { public $prop2 = "test"; } class TestClass2 { public $prop; public function __construct() { $this->prop = new TestClass(); } } function deepProperty($obj,$property,$value = null) { $curObj = &$obj; $properties = explode('.',$property); while(count($properties) > 1) $curObj = &$curObj->{array_shift($properties)}; if ($value != null) $curObj->{$properties[0]} = $value; var_dump($curObj,$properties); return $curObj->{$properties[0]}; } $object = new TestClass2(); echo deepProperty($object,"prop.prop2");

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.00016.75
8.3.50.0100.00922.93
8.3.40.0150.00018.83
8.3.30.0000.01419.22
8.3.20.0130.00320.21
8.3.10.0030.00521.90
8.3.00.0080.00017.75
8.2.180.0090.00916.63
8.2.170.0150.00022.96
8.2.160.0030.01020.35
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0090.00026.16
8.2.120.0040.00421.08
8.2.110.0070.00321.07
8.2.100.0040.00817.84
8.2.90.0050.00319.34
8.2.80.0080.00017.97
8.2.70.0040.00417.50
8.2.60.0090.00017.80
8.2.50.0000.00818.07
8.2.40.0080.00018.28
8.2.30.0030.00618.08
8.2.20.0000.00717.70
8.2.10.0030.00518.01
8.2.00.0070.00017.82
8.1.280.0040.01125.92
8.1.270.0040.00423.79
8.1.260.0050.00226.35
8.1.250.0000.00728.09
8.1.240.0060.01222.55
8.1.230.0070.00320.95
8.1.220.0080.00018.77
8.1.210.0040.00418.98
8.1.200.0090.00317.13
8.1.190.0030.00517.35
8.1.180.0030.00518.10
8.1.170.0000.00818.59
8.1.160.0000.00822.07
8.1.150.0040.00418.89
8.1.140.0050.00217.43
8.1.130.0000.00717.88
8.1.120.0040.00417.54
8.1.110.0040.00417.47
8.1.100.0040.00417.50
8.1.90.0070.00017.50
8.1.80.0040.00417.53
8.1.70.0030.00317.49
8.1.60.0000.00817.65
8.1.50.0000.00917.61
8.1.40.0030.00617.54
8.1.30.0030.00617.49
8.1.20.0000.00817.56
8.1.10.0000.00817.45
8.1.00.0000.01117.51
8.0.300.0000.01119.82
8.0.290.0040.00416.63
8.0.280.0030.00318.57
8.0.270.0050.00217.33
8.0.260.0060.00017.21
8.0.250.0030.00316.96
8.0.240.0040.00416.96
8.0.230.0030.00616.77
8.0.220.0000.00716.85
8.0.210.0030.00316.97
8.0.200.0040.00416.86
8.0.190.0020.00517.03
8.0.180.0040.00416.84
8.0.170.0040.00416.89
8.0.160.0000.00716.98
8.0.150.0040.00416.90
8.0.140.0040.00416.75
8.0.130.0030.00313.36
8.0.120.0040.00416.83
8.0.110.0040.00416.81
8.0.100.0040.00416.97
8.0.90.0040.00416.91
8.0.80.0100.00616.96
8.0.70.0000.00816.74
8.0.60.0070.00016.83
8.0.50.0000.00716.82
8.0.30.0120.00917.12
8.0.20.0070.01217.40
8.0.10.0050.00216.89
8.0.00.0060.01316.88
7.4.330.0050.00015.15
7.4.320.0030.00316.62
7.4.300.0030.00316.61
7.4.290.0030.00316.52
7.4.280.0100.00016.52
7.4.270.0030.00316.63
7.4.260.0030.00316.45
7.4.250.0050.00316.38
7.4.240.0030.00316.56
7.4.230.0030.00316.52
7.4.220.0110.00716.54
7.4.210.0030.01216.66
7.4.200.0040.00416.41
7.4.160.0030.01316.58
7.4.150.0130.01017.40
7.4.140.0110.00817.86
7.4.130.0120.00516.66
7.4.120.0060.01016.54
7.4.110.0130.00316.41
7.4.100.0120.00616.54
7.4.90.0170.00316.37
7.4.80.0140.00319.39
7.4.70.0100.00716.41
7.4.60.0090.00916.36
7.4.50.0020.00216.35
7.4.40.0060.01216.61
7.4.30.0130.00316.38
7.4.00.0070.00714.85
7.3.330.0060.00013.36
7.3.320.0030.00313.23
7.3.310.0070.00016.35
7.3.300.0060.00016.33
7.3.290.0060.00916.38
7.3.280.0110.00816.38
7.3.270.0150.00917.40
7.3.260.0150.00416.54
7.3.250.0100.00716.41
7.3.240.0080.00816.41
7.3.230.0080.00916.39
7.3.210.0110.00616.45
7.3.200.0070.01019.39
7.3.190.0100.01316.55
7.3.180.0080.00816.55
7.3.170.0030.01216.54
7.3.160.0060.01216.35
7.2.330.0090.01516.88
7.2.320.0100.00616.63
7.2.310.0030.01616.65
7.2.300.0090.00916.82
7.2.290.0070.01416.52
7.1.70.0030.01317.18
7.1.60.0090.01519.40
7.1.50.0180.02116.90
7.1.00.0100.07022.31
7.0.200.0000.00716.64
7.0.140.0030.07321.93
7.0.60.0170.07020.07
7.0.50.0030.08017.92
7.0.40.0100.08020.11
7.0.30.0400.04020.09
7.0.20.0270.08020.30
7.0.10.0170.06320.10
7.0.00.0030.04020.06
5.6.280.0100.06720.78
5.6.210.0070.08320.77
5.6.200.0170.07018.19
5.6.190.0030.06720.39
5.6.180.0370.07320.33
5.6.170.0100.04720.44
5.6.160.0000.05020.46
5.6.150.0000.06318.28
5.6.140.0070.04718.18
5.6.130.0070.06718.15
5.6.120.0130.07320.98
5.6.110.0100.08021.10
5.6.100.0100.08020.98
5.6.90.0070.07721.01
5.6.80.0100.06720.39
5.6.70.3370.03020.38
5.5.350.0030.08720.41
5.5.340.0100.07017.94
5.5.330.0070.04720.34
5.5.320.0470.04320.20
5.5.310.0230.05320.41
5.5.300.0100.05317.92
5.5.290.0030.04017.98
5.5.280.0070.06720.77
5.5.270.0070.04020.87
5.5.260.0070.04320.89
5.5.250.0130.05320.68
5.5.240.0070.04020.27
5.4.450.0370.04719.28
5.4.440.0230.05019.54
5.4.430.0870.03719.41
5.4.420.0270.04719.45
5.4.410.0500.03319.36
5.4.400.0600.04019.00
5.4.390.1130.04019.17
5.4.380.0370.06018.80
5.4.370.0430.05018.82
5.4.360.0530.07018.79
5.4.350.0330.06718.75
5.4.340.0300.05318.79
5.4.320.0090.04112.51
5.4.310.0060.03712.50
5.4.300.0040.04212.51
5.4.290.0050.03912.50
5.4.280.0090.03212.40
5.4.270.0040.03712.40
5.4.260.0020.04112.40
5.4.250.0060.03812.40
5.4.240.0040.04012.41
5.4.230.0040.04812.40
5.4.220.0080.03412.39
5.4.210.0070.03612.39
5.4.200.0060.04212.39
5.4.190.0050.03712.39
5.4.180.0060.04612.39
5.4.170.0080.03912.39
5.4.160.0070.04012.39
5.4.150.0080.03612.39
5.4.140.0040.04012.08
5.4.130.0030.03912.06
5.4.120.0050.03612.02
5.4.110.0050.03512.02
5.4.100.0100.03112.02
5.4.90.0080.03512.01
5.4.80.0070.03612.02
5.4.70.0060.03412.02
5.4.60.0060.03412.01
5.4.50.0070.03312.02
5.4.40.0080.03212.00
5.4.30.0050.03612.00
5.4.20.0030.03712.00
5.4.10.0030.03712.00
5.4.00.0050.03611.49
5.3.290.0050.04112.80
5.3.280.0080.03512.71
5.3.270.0130.03212.72
5.3.260.0080.03712.72
5.3.250.0040.03912.72
5.3.240.0070.03612.72
5.3.230.0070.03712.71
5.3.220.0030.04012.68
5.3.210.0100.03412.68
5.3.200.0050.03812.68
5.3.190.0070.03712.68
5.3.180.0070.03612.68
5.3.170.0110.03312.67
5.3.160.0090.03612.67
5.3.150.0070.03912.67
5.3.140.0090.03312.66
5.3.130.0050.04012.66
5.3.120.0060.04012.66
5.3.110.0040.04012.66
5.3.100.0060.03612.12
5.3.90.0100.03212.11
5.3.80.0060.03512.10
5.3.70.0060.03712.10
5.3.60.0060.03712.09
5.3.50.0110.03712.03
5.3.40.0070.04712.03
5.3.30.0050.04311.99
5.3.20.0070.03811.78
5.3.10.0060.04811.74
5.3.00.0080.03911.72
5.2.170.0050.0319.23
5.2.160.0050.0299.23
5.2.150.0060.0299.23
5.2.140.0050.0309.23
5.2.130.0060.0299.19
5.2.120.0060.0279.19
5.2.110.0020.0319.20
5.2.100.0030.0299.19
5.2.90.0030.0309.19
5.2.80.0070.0279.19
5.2.70.0080.0269.18
5.2.60.0050.0299.14
5.2.50.0040.0329.11
5.2.40.0060.0279.09
5.2.30.0050.0289.05
5.2.20.0060.0279.04
5.2.10.0020.0308.95
5.2.00.0030.0308.82
5.1.60.0020.0258.09
5.1.50.0060.0238.09
5.1.40.0030.0258.07
5.1.30.0030.0318.42
5.1.20.0030.0288.44
5.1.10.0010.0308.17
5.1.00.0030.0268.17
5.0.50.0040.0196.64
5.0.40.0030.0196.52
5.0.30.0050.0306.32
5.0.20.0030.0206.28
5.0.10.0050.0186.27
5.0.00.0030.0306.26
4.4.90.0040.0134.78
4.4.80.0010.0174.75
4.4.70.0030.0154.75
4.4.60.0050.0134.75
4.4.50.0010.0174.77
4.4.40.0030.0244.71
4.4.30.0040.0184.76
4.4.20.0050.0134.85
4.4.10.0030.0154.85
4.4.00.0020.0254.76
4.3.110.0030.0154.67
4.3.100.0020.0154.66
4.3.90.0020.0154.63
4.3.80.0020.0244.59
4.3.70.0020.0154.63
4.3.60.0020.0154.63
4.3.50.0030.0154.63
4.3.40.0020.0264.54
4.3.30.0030.0173.30
4.3.20.0020.0173.28
4.3.10.0010.0163.23
4.3.00.0270.01715.90

preferences:
37.33 ms | 401 KiB | 5 Q