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_unshift($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.0090.00916.75
8.3.50.0090.01022.88
8.3.40.0120.00619.01
8.3.30.0070.00719.04
8.3.20.0080.00820.20
8.3.10.0050.00321.90
8.3.00.0040.00417.88
8.2.180.0110.00716.63
8.2.170.0110.00322.96
8.2.160.0070.00720.35
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00021.04
8.2.110.0060.00322.15
8.2.100.0070.00717.71
8.2.90.0000.00719.13
8.2.80.0040.00417.97
8.2.70.0030.00517.63
8.2.60.0060.00317.93
8.2.50.0040.00418.07
8.2.40.0060.00318.22
8.2.30.0040.00418.07
8.2.20.0040.00417.64
8.2.10.0040.00418.15
8.2.00.0040.00417.82
8.1.280.0040.01125.92
8.1.270.0040.00423.83
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0000.00923.99
8.1.230.0070.00419.02
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0100.00017.48
8.1.190.0040.00417.25
8.1.180.0040.00418.10
8.1.170.0040.00418.59
8.1.160.0040.00422.04
8.1.150.0000.00718.89
8.1.140.0050.00317.34
8.1.130.0070.00017.81
8.1.120.0040.00417.45
8.1.110.0080.00017.46
8.1.100.0040.00417.36
8.1.90.0000.00717.48
8.1.80.0040.00417.42
8.1.70.0030.00317.44
8.1.60.0060.00317.50
8.1.50.0040.00417.43
8.1.40.0050.00317.58
8.1.30.0030.00517.73
8.1.20.0000.00817.63
8.1.10.0050.00217.57
8.1.00.0080.00417.57
8.0.300.0080.00018.77
8.0.290.0040.00416.75
8.0.280.0000.00718.44
8.0.270.0050.00317.16
8.0.260.0060.00017.21
8.0.250.0040.00316.88
8.0.240.0040.00416.96
8.0.230.0030.00716.97
8.0.220.0000.00716.92
8.0.210.0000.00716.93
8.0.200.0070.00316.83
8.0.190.0070.00016.90
8.0.180.0000.00816.95
8.0.170.0000.00816.98
8.0.160.0000.00716.91
8.0.150.0040.00416.93
8.0.140.0090.00316.86
8.0.130.0030.00313.38
8.0.120.0000.00816.87
8.0.110.0040.00416.80
8.0.100.0040.00416.90
8.0.90.0070.00016.91
8.0.80.0130.00316.86
8.0.70.0040.00416.96
8.0.60.0000.00817.00
8.0.50.0050.00316.86
8.0.30.0050.01417.03
8.0.20.0120.00817.40
8.0.10.0060.00316.91
8.0.00.0090.00916.70
7.4.330.0050.00015.15
7.4.320.0030.00316.61
7.4.300.0000.00716.76
7.4.290.0000.00716.73
7.4.280.0070.00316.63
7.4.270.0030.00316.48
7.4.260.0090.00016.82
7.4.250.0050.00316.63
7.4.240.0060.00216.58
7.4.230.0000.00816.83
7.4.220.0070.01316.66
7.4.210.0060.01516.69
7.4.200.0030.00316.65
7.4.160.0150.00416.84
7.4.150.0140.01117.40
7.4.140.0130.01317.86
7.4.130.0150.00716.57
7.4.120.0150.00616.76
7.4.110.0090.01016.66
7.4.100.0100.01416.64
7.4.90.0110.01116.60
7.4.80.0060.01319.39
7.4.70.0140.00616.50
7.4.60.0080.01116.64
7.4.50.0000.00716.86
7.4.40.0030.01616.64
7.4.30.0040.01416.59
7.4.00.0110.00414.93
7.3.330.0470.073135.02
7.3.320.0400.077135.02
7.3.310.0290.02678.93
7.3.300.0270.02778.63
7.3.290.1230.05778.73
7.3.280.0690.08178.81
7.3.270.0780.09178.89
7.3.260.0760.09678.91
7.3.250.0620.06678.98
7.3.240.0640.07179.00
7.3.230.0900.09079.02
7.3.210.0750.06278.86
7.3.200.0730.08479.01
7.3.190.0570.10378.70
7.3.180.0660.06278.97
7.3.170.0560.06278.94
7.3.160.0560.06779.07
7.2.330.0120.02016.60
7.2.320.0030.01716.79
7.2.310.0050.01416.53
7.2.300.0090.00916.64
7.2.290.0060.01617.20
7.2.60.0200.00016.80
7.2.00.0040.01119.11
7.1.200.0070.00315.70
7.1.100.0070.00717.72
7.1.70.0030.00517.02
7.1.60.0110.01419.40
7.1.50.0140.01016.86
7.1.00.0030.07722.25
7.0.200.0000.00716.78
7.0.140.0000.07721.96
7.0.60.0000.08320.05
7.0.50.0070.03717.89
7.0.40.0070.04020.15
7.0.30.0070.05020.07
7.0.20.0300.06720.13
7.0.10.0170.07320.21
7.0.00.0070.04720.12
5.6.280.0030.07321.07
5.6.210.0170.05720.63
5.6.200.0030.04018.28
5.6.190.0100.03720.67
5.6.180.4130.03720.64
5.6.170.0330.07320.44
5.6.160.0070.04020.42
5.6.150.0030.05318.20
5.6.140.0000.05318.28
5.6.130.0030.04018.24
5.6.120.0000.09021.02
5.6.110.0200.07020.97
5.6.100.0070.03720.99
5.6.90.0070.08320.98
5.6.80.0030.07020.48
5.6.70.4200.04720.36
5.5.350.0270.07720.34
5.5.340.0100.07717.96
5.5.330.0100.08020.26
5.5.320.3370.04320.51
5.5.310.0230.08020.34
5.5.300.0070.08318.09
5.5.290.0000.08718.04
5.5.280.0030.04020.90
5.5.270.0070.04320.95
5.5.260.0000.05020.78
5.5.250.0100.05720.72
5.5.240.0200.07720.38
5.4.450.0130.05319.48
5.4.440.0300.03719.27
5.4.430.0500.05019.41
5.4.420.0430.03019.45
5.4.410.0970.03019.21
5.4.400.0400.04019.25
5.4.390.0700.03319.24
5.4.380.0330.05018.62
5.4.370.0370.05018.50
5.4.360.0370.05018.51
5.4.350.0400.04718.59
5.4.340.0570.08318.86
5.4.320.0050.03912.51
5.4.310.0080.04012.50
5.4.300.0050.03912.51
5.4.290.0030.04112.51
5.4.280.0060.03512.41
5.4.270.0040.04212.40
5.4.260.0030.04012.41
5.4.250.0070.04312.41
5.4.240.0080.03712.40
5.4.230.0080.03412.40
5.4.220.0110.03912.39
5.4.210.0040.04312.39
5.4.200.0070.03512.39
5.4.190.0070.03412.39
5.4.180.0090.03612.39
5.4.170.0040.03712.40
5.4.160.0060.03612.39
5.4.150.0050.03612.39
5.4.140.0050.03912.08
5.4.130.0080.03312.06
5.4.120.0040.03712.02
5.4.110.0040.03712.02
5.4.100.0050.03512.02
5.4.90.0060.03712.02
5.4.80.0060.03912.02
5.4.70.0050.03512.01
5.4.60.0080.03212.01
5.4.50.0050.03512.01
5.4.40.0060.03412.00
5.4.30.0020.03812.00
5.4.20.0080.03312.00
5.4.10.0060.03412.00
5.4.00.0090.03811.48
5.3.290.0080.03712.80
5.3.280.0070.03712.71
5.3.270.0070.03912.72
5.3.260.0090.03612.72
5.3.250.0050.03812.72
5.3.240.0050.03812.72
5.3.230.0050.03812.71
5.3.220.0040.04112.68
5.3.210.0040.04012.68
5.3.200.0110.03112.68
5.3.190.0040.03912.68
5.3.180.0100.03312.68
5.3.170.0100.03912.67
5.3.160.0040.03812.67
5.3.150.0090.04212.67
5.3.140.0070.03512.66
5.3.130.0080.03812.66
5.3.120.0090.03412.66
5.3.110.0080.03712.66
5.3.100.0070.04312.13
5.3.90.0060.04212.11
5.3.80.0060.03712.11
5.3.70.0070.03712.11
5.3.60.0080.04412.09
5.3.50.0050.04212.04
5.3.40.0140.03012.04
5.3.30.0070.03412.00
5.3.20.0120.03411.78
5.3.10.0090.04011.74
5.3.00.0040.04911.73
5.2.170.0050.0309.23
5.2.160.0030.0309.23
5.2.150.0050.0309.23
5.2.140.0040.0319.23
5.2.130.0050.0299.19
5.2.120.0040.0299.18
5.2.110.0060.0289.20
5.2.100.0060.0269.19
5.2.90.0040.0299.20
5.2.80.0040.0319.19
5.2.70.0060.0399.19
5.2.60.0060.0309.14
5.2.50.0070.0299.11
5.2.40.0040.0299.09
5.2.30.0040.0309.07
5.2.20.0030.0309.04
5.2.10.0060.0278.95
5.2.00.0060.0288.82
5.1.60.0070.0208.10
5.1.50.0030.0288.09
5.1.40.0000.0338.07
5.1.30.0040.0278.43
5.1.20.0060.0308.45
5.1.10.0080.0238.18
5.1.00.0030.0278.18
5.0.50.0020.0286.65
5.0.40.0030.0236.64
5.0.30.0060.0346.47
5.0.20.0040.0276.55
5.0.10.0090.0216.41
5.0.00.0040.0366.40
4.4.90.0050.0194.78
4.4.80.0020.0164.75
4.4.70.0050.0194.75
4.4.60.0010.0174.76
4.4.50.0040.0144.77
4.4.40.0050.0254.71
4.4.30.0030.0154.76
4.4.20.0020.0164.85
4.4.10.0030.0154.85
4.4.00.0020.0254.76
4.3.110.0030.0154.67
4.3.100.0030.0174.66
4.3.90.0040.0134.64
4.3.80.0020.0244.58
4.3.70.0050.0144.63
4.3.60.0050.0134.63
4.3.50.0030.0164.63
4.3.40.0040.0284.54
4.3.30.0020.0223.30
4.3.20.0000.0183.28
4.3.10.0010.0163.24
4.3.00.0330.01715.90

preferences:
43.48 ms | 401 KiB | 5 Q