3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class AbstractClass { public function __construct() { } public function get($property) { $rc = new \ReflectionClass($this); $p = $rc->getProperty($property); $p->setAccessible(true); return $p->getValue($this); } public function set($property, $value) { $rc = new \ReflectionClass($this); $p = $rc->getProperty($property); $p->setAccessible(true); $p->setValue($this, $value); return $this; } } abstract class MetadataClass extends AbstractClass { private $metadataA; private $metadataB; } class ActualClass extends MetadataClass { private $realField1; private $realField2; } $impl = new ActualClass(); $impl->set('realField1', 'Hello World'); echo $impl->get('realField1');

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.4.20.0120.00417.50
8.4.10.0060.00319.45
8.3.150.0160.00316.59
8.3.140.0090.00016.65
8.3.130.0180.00619.08
8.3.120.0030.00618.88
8.3.110.0040.00420.94
8.3.100.0060.00316.74
8.3.90.0140.00016.54
8.3.80.0030.00618.43
8.3.70.0080.00818.43
8.3.60.0090.00618.42
8.3.50.0030.01222.05
8.3.40.0070.00718.79
8.3.30.0080.00819.00
8.3.20.0050.00320.30
8.3.10.0050.00322.14
8.3.00.0070.00020.50
8.2.260.0100.00017.37
8.2.250.0030.00616.62
8.2.240.0040.00417.04
8.2.230.0040.00422.58
8.2.220.0030.00624.06
8.2.210.0080.00026.77
8.2.200.0060.00318.30
8.2.190.0070.00716.75
8.2.180.0070.01418.29
8.2.170.0070.00722.96
8.2.160.0110.00719.21
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0060.00326.16
8.2.120.0080.01119.23
8.2.110.0030.00621.10
8.2.100.0120.00019.57
8.2.90.0030.00617.91
8.2.80.0000.00817.97
8.2.70.0050.00317.92
8.2.60.0000.00819.95
8.2.50.0040.00418.07
8.2.40.0000.00918.16
8.2.30.0050.00217.95
8.2.20.0040.00417.73
8.2.10.0030.00517.69
8.2.00.0030.00717.48
8.1.310.0100.01016.93
8.1.300.0040.00417.68
8.1.290.0060.00318.88
8.1.280.0030.01725.92
8.1.270.0040.00422.14
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00422.42
8.1.230.0110.00420.91
8.1.220.0040.00417.77
8.1.210.0080.00018.77
8.1.200.0060.00317.22
8.1.190.0050.00319.01
8.1.180.0040.00418.79
8.1.170.0050.00318.58
8.1.160.0000.00822.15
8.1.150.0040.00418.51
8.1.140.0000.00817.46
8.1.130.0030.00317.88
8.1.120.0040.00417.41
8.1.110.0000.00817.32
8.1.100.0000.00717.45
8.1.90.0000.00817.23
8.1.80.0000.00717.31
8.1.70.0000.00717.28
8.1.60.0050.00317.58
8.1.50.0040.00417.52
8.1.40.0090.00017.53
8.1.30.0040.00417.69
8.1.20.0040.00417.69
8.1.10.0050.00317.59
8.1.00.0000.01117.48
8.0.300.0080.00021.46
8.0.290.0040.00416.75
8.0.280.0040.00418.45
8.0.270.0040.00416.89
8.0.260.0070.00016.84
8.0.250.0040.00416.88
8.0.240.0000.00716.96
8.0.230.0000.00716.87
8.0.220.0030.00316.75
8.0.210.0000.00616.83
8.0.200.0030.00316.94
8.0.190.0070.00016.81
8.0.180.0020.00516.90
8.0.170.0050.00316.84
8.0.160.0040.00416.84
8.0.150.0040.00316.81
8.0.140.0050.00316.81
8.0.130.0050.00013.29
8.0.120.0000.00816.80
8.0.110.0040.00416.75
8.0.100.0000.00716.79
8.0.90.0000.00716.78
8.0.80.0060.00916.81
8.0.70.0040.00416.82
8.0.60.0040.00416.73
8.0.50.0000.00716.74
8.0.30.0030.01517.25
8.0.20.0060.01317.40
8.0.10.0040.00416.85
8.0.00.0120.00616.84
7.4.330.0020.00215.00
7.4.320.0030.00316.43
7.4.300.0070.00016.53
7.4.290.0030.00316.65
7.4.280.0030.00316.48
7.4.270.0000.00716.51
7.4.260.0030.00316.47
7.4.250.0070.00016.45
7.4.240.0020.00616.44
7.4.230.0070.00016.50
7.4.220.0110.00716.63
7.4.210.0080.00616.53
7.4.200.0030.00316.52
7.4.190.0000.00716.48
7.4.160.0030.01416.30
7.4.150.0090.00917.40
7.4.140.0070.01217.86
7.4.130.0050.01316.62
7.4.120.0100.00916.66
7.4.110.0030.01316.50
7.4.100.0170.00216.59
7.4.90.0140.00316.49
7.4.80.0100.01319.39
7.4.70.0140.00316.38
7.4.60.0100.00616.55
7.4.50.0030.00616.36
7.4.40.0120.00322.77
7.4.30.0070.01016.63
7.4.00.0040.01114.63
7.3.330.0050.00013.32
7.3.320.0030.00313.05
7.3.310.0070.00016.11
7.3.300.0030.00316.13
7.3.290.0030.01016.23
7.3.280.0100.00516.22
7.3.270.0090.00817.40
7.3.260.0100.00716.23
7.3.250.0140.00616.27
7.3.240.0090.00916.13
7.3.230.0060.01216.39
7.3.210.0110.01116.28
7.3.200.0180.00019.39
7.3.190.0040.01316.48
7.3.180.0130.00616.46
7.3.170.0030.01616.29
7.3.160.0100.01016.51
7.3.120.0070.00414.61
7.3.10.0100.00816.21
7.3.00.0130.00015.95
7.2.330.0050.01116.70
7.2.320.0120.00816.67
7.2.310.0110.01116.70
7.2.300.0100.00716.36
7.2.290.0060.01016.79
7.2.130.0120.00916.36
7.2.120.0090.00616.83
7.2.110.0170.00316.16
7.2.100.0050.01416.02
7.2.90.0110.00416.46
7.2.80.0070.00716.35
7.2.70.0110.00416.61
7.2.60.0100.00516.67
7.2.50.0040.01216.34
7.2.40.0090.00616.62
7.2.30.0140.00316.25
7.2.20.0100.00716.45
7.2.10.0090.00716.42
7.2.00.0100.00618.08
7.1.250.0100.00315.55
7.1.200.0070.00715.70
7.1.100.0060.00918.13
7.1.70.0040.00717.08
7.1.60.0130.01019.82
7.1.50.0030.01916.87
7.1.00.0070.04322.45
7.0.200.0000.00816.87
7.0.140.0030.07722.07
7.0.60.0070.03720.03
7.0.50.0130.05717.95
7.0.40.0170.07020.26
7.0.30.0300.04020.24
7.0.20.0200.04320.25
7.0.10.0230.05020.12
7.0.00.0030.09020.24
5.6.280.0100.06721.03
5.6.210.0070.08320.62
5.6.200.0070.07718.16
5.6.190.0100.08320.55
5.6.180.3870.04720.33
5.6.170.0200.04720.55
5.6.160.0070.08320.57
5.6.150.0000.08718.20
5.6.140.0000.04318.16
5.6.130.0070.08718.21
5.6.120.0130.08020.98
5.6.110.0100.08021.12
5.6.100.0130.08020.98
5.6.90.0130.07720.89
5.6.80.0070.04020.36
5.6.70.0130.06320.39
5.5.350.0130.05720.44
5.5.340.0030.05018.09
5.5.330.0170.07320.14
5.5.320.0230.05320.30
5.5.310.0430.06720.35
5.5.300.0070.04018.04
5.5.290.0130.07318.07
5.5.280.0100.08020.90
5.5.270.0030.04720.62
5.5.260.0070.08320.91
5.5.250.0000.04320.70
5.5.240.0030.04320.20
5.4.450.0100.05719.47
5.4.440.0600.05319.55
5.4.430.0100.05719.47
5.4.420.0930.06019.59
5.4.410.0800.05019.33
5.4.400.0370.07718.66
5.4.390.0400.05018.77
5.4.380.0130.06318.81
5.4.370.0100.05318.79
5.4.360.0130.05318.70
5.4.350.0070.06018.61
5.4.340.0170.05018.76
5.4.320.0070.03812.52
5.4.310.0050.04312.51
5.4.300.0050.04412.52
5.4.290.0090.04412.51
5.4.280.0080.03412.41
5.4.270.0100.03712.41
5.4.260.0070.05318.95
5.4.250.0130.06719.01
5.4.240.0100.05018.99
5.4.230.0070.07018.99
5.4.220.0100.05319.00
5.4.210.0070.06019.01
5.4.200.0070.05018.95
5.4.190.0030.05018.73
5.4.180.0000.05719.05
5.4.170.0070.05718.96
5.4.160.0100.06719.08
5.4.150.0030.05719.00
5.4.140.0030.07016.61
5.4.130.0070.04316.44
5.4.120.0030.05316.47
5.4.110.0030.05316.67
5.4.100.0070.04716.48
5.4.90.0030.05016.47
5.4.80.0030.04716.45
5.4.70.0070.04716.42
5.4.60.0100.04716.55
5.4.50.0070.04716.38
5.4.40.0070.04316.64
5.4.30.0030.04716.30
5.4.20.0000.05016.54
5.4.10.0000.05716.47
5.4.00.0070.04715.89
5.3.290.0070.04212.80
5.3.280.0100.05714.60
5.3.270.0030.07714.70
5.3.260.0030.07014.64
5.3.250.0130.06314.69
5.3.240.0100.06714.60
5.3.230.0030.05314.45
5.3.220.0030.05014.48
5.3.210.0070.05014.59
5.3.200.0100.04314.66
5.3.190.0030.05014.57
5.3.180.0100.05014.59
5.3.170.0030.05014.64
5.3.160.0070.06014.42
5.3.150.0170.05714.40
5.3.140.0100.04314.70
5.3.130.0070.05014.54
5.3.120.0130.05714.56
5.3.110.0130.04314.64
5.3.100.0030.05014.12
5.3.90.0030.04714.11
5.3.80.0000.06014.11
5.3.70.0030.05014.09
5.3.60.0000.05314.17
5.3.50.0070.04714.18
5.3.40.0070.05014.03
5.3.30.0030.06714.01
5.3.20.0070.04313.77
5.3.10.0070.04313.79
5.3.00.0100.04013.55
5.2.170.0030.04011.21
5.2.160.0000.04011.13
5.2.150.0030.04011.14
5.2.140.0030.04310.98
5.2.130.0030.04011.18
5.2.120.0030.03711.19
5.2.110.0000.04311.09
5.2.100.0070.04711.11
5.2.90.0030.06011.29
5.2.80.0030.04010.93
5.2.70.0030.04311.18
5.2.60.0070.04711.02
5.2.50.0000.04711.19
5.2.40.0170.03010.98
5.2.30.0100.05010.98
5.2.20.0130.04310.95
5.2.10.0030.05310.84
5.2.00.0070.05710.80
5.1.60.0100.0379.96
5.1.50.0070.04710.25
5.1.40.0070.0309.95
5.1.30.0000.03710.42
5.1.20.0000.05710.27
5.1.10.0030.03310.00
5.1.00.0100.0309.91
5.0.50.0000.0308.71
5.0.40.0070.0238.46
5.0.30.0030.0578.21
5.0.20.0000.0308.24
5.0.10.0000.0408.25
5.0.00.0030.0508.41
4.4.90.0030.0207.33
4.4.80.0000.0207.33
4.4.70.0070.0237.33
4.4.60.0000.0237.33
4.4.50.0000.0237.33
4.4.40.0070.0407.33
4.4.30.0000.0207.33
4.4.20.0000.0337.33
4.4.10.0030.0307.33
4.4.00.0070.0337.33
4.3.110.0000.0237.33
4.3.100.0030.0177.33
4.3.90.0030.0277.33
4.3.80.0070.0407.33
4.3.70.0000.0277.33
4.3.60.0000.0207.33
4.3.50.0000.0337.33
4.3.40.0000.0477.33
4.3.30.0030.0277.33
4.3.20.0030.0277.33
4.3.10.0030.0207.33
4.3.00.0170.0277.90

preferences:
79.9 ms | 403 KiB | 5 Q