3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class ImplicitAbstractClass { private $a = 'foo'; protected $b = 'bar'; public $c = 'baz'; abstract function test(); } abstract class SimpleAbstractInheritance extends ImplicitAbstractClass { public $b = 'bar1'; public $d = 'foobar'; private $e = 'foobaz'; } // It's how PHP presents it $original = (new \ReflectionMethod(SimpleAbstractInheritance::class, 'test'))->__toString(); // And if use a parser and analyze methods from the SimpleAbstractInheritance class // then we collect methods from the parent directly like this $methods = (new \ReflectionClass(ImplicitAbstractClass::class))->getMethods(); $parsed = $methods[0]->__toString(); // Pay an attention to the "inherits ImplicitAbstractClass" section echo "Original: ", $original, PHP_EOL, "Parsed: ", $parsed;

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.5.00.0130.00821.65
8.4.150.0020.00014.05
8.4.140.0150.00717.46
8.4.130.0040.00518.55
8.4.120.0080.01317.79
8.4.110.0100.01117.80
8.4.100.0120.00817.70
8.4.90.0070.00420.59
8.4.80.0140.00818.82
8.4.70.0090.00919.13
8.4.60.0110.00918.49
8.4.50.0130.00718.65
8.4.40.0090.01319.51
8.4.30.0150.00617.83
8.4.20.0200.00018.77
8.4.10.0130.00717.64
8.3.280.0100.01018.38
8.3.270.0130.00716.37
8.3.260.0140.00516.49
8.3.250.0050.00318.43
8.3.240.0140.00616.36
8.3.230.0050.00316.44
8.3.220.0050.00419.00
8.3.210.0060.01216.64
8.3.200.0050.00316.49
8.3.190.0090.00817.36
8.3.180.0100.00918.73
8.3.170.0030.00618.86
8.3.160.0120.00618.90
8.3.150.0130.00717.16
8.3.140.0030.00618.17
8.3.130.0070.00318.21
8.3.120.0130.00719.05
8.3.110.0060.00320.94
8.3.100.0090.00024.06
8.3.90.0080.00026.77
8.3.80.0030.00618.43
8.3.70.0070.01116.63
8.3.60.0040.01116.50
8.3.50.0110.01322.11
8.3.40.0040.01118.72
8.3.30.0040.01118.63
8.3.20.0050.00319.14
8.3.10.0050.00221.88
8.3.00.0040.00420.67
8.2.290.0120.00616.69
8.2.280.0130.00718.38
8.2.270.0100.00718.53
8.2.260.0060.00316.60
8.2.250.0000.00818.47
8.2.240.0100.00017.36
8.2.230.0090.00022.58
8.2.220.0090.00037.54
8.2.210.0040.00426.77
8.2.200.0060.00316.63
8.2.190.0040.01116.58
8.2.180.0120.00318.29
8.2.170.0040.01122.96
8.2.160.0100.00320.43
8.2.150.0070.00424.18
8.2.140.0000.00824.66
8.2.130.0080.00021.13
8.2.120.0050.00326.35
8.2.110.0060.00322.26
8.2.100.0040.00717.91
8.2.90.0060.00319.36
8.2.80.0000.00817.97
8.2.70.0050.00317.61
8.2.60.0030.00618.03
8.2.50.0040.00418.10
8.2.40.0000.00820.47
8.2.30.0070.00019.23
8.2.20.0050.00218.04
8.2.10.0040.00417.99
8.2.00.0040.00417.76
8.1.330.0100.00915.81
8.1.320.0040.00417.88
8.1.310.0050.00321.84
8.1.300.0150.00018.52
8.1.290.0030.00630.84
8.1.280.0170.00325.92
8.1.270.0070.00023.79
8.1.260.0060.00326.35
8.1.250.0080.00028.09
8.1.240.0050.00324.00
8.1.230.0100.00022.11
8.1.220.0060.00317.79
8.1.210.0030.00618.77
8.1.200.0030.00617.00
8.1.190.0040.00417.10
8.1.180.0000.00818.10
8.1.170.0090.00018.84
8.1.160.0000.00718.93
8.1.150.0040.00420.18
8.1.140.0000.00719.43
8.1.130.0060.00317.31
8.1.120.0030.00317.37
8.1.110.0050.00317.34
8.1.100.0040.00417.28
8.1.90.0000.00817.41
8.1.80.0000.00717.32
8.1.70.0000.00817.40
8.1.60.0040.00417.54
8.1.50.0040.00417.36
8.1.40.0040.00417.51
8.1.30.0040.00417.43
8.1.20.0080.00017.55
8.1.10.0050.00217.45
8.1.00.0040.00417.55
8.0.300.0000.00718.77
8.0.290.0080.00016.75
8.0.280.0030.00318.50
8.0.270.0040.00417.30
8.0.260.0070.00016.82
8.0.250.0000.00716.94
8.0.240.0030.00316.92
8.0.230.0060.00316.81
8.0.220.0030.00516.73
8.0.210.0000.00716.84
8.0.200.0030.00316.89
8.0.190.0030.00716.86
8.0.180.0040.00416.89
8.0.170.0000.00716.79
8.0.160.0030.00316.73
8.0.150.0030.00316.82
8.0.140.0000.00716.69
8.0.130.0030.00613.27
8.0.120.0070.00016.74
8.0.110.0040.00416.82
8.0.100.0000.00716.70
8.0.90.0000.00716.73
8.0.80.0030.01716.87
8.0.70.0000.00716.82
8.0.60.0040.00416.84
8.0.50.0050.00216.63
8.0.30.0090.01217.11
8.0.20.0090.01017.40
8.0.10.0000.00817.08
8.0.00.0030.01516.68
7.4.330.0030.00315.55
7.4.320.0030.00316.60
7.4.300.0000.00616.53
7.4.290.0040.00416.34
7.4.280.0040.00416.58
7.4.270.0000.00616.45
7.4.260.0040.00416.49
7.4.250.0000.00716.51
7.4.240.0050.00516.41
7.4.230.0030.00316.61
7.4.220.0070.01016.30
7.4.210.0040.01816.53
7.4.200.0030.00316.43
7.4.160.0110.00816.46
7.4.150.0090.00917.40
7.4.140.0080.01117.86
7.4.130.0110.00716.63
7.4.120.0090.01116.52
7.4.110.0120.00916.29
7.4.100.0100.00616.60
7.4.90.0000.01716.48
7.4.80.0060.01219.39
7.4.70.0040.01216.63
7.4.60.0100.00716.50
7.4.50.0000.01816.48
7.4.40.0120.00416.33
7.4.30.0070.01416.37
7.4.00.0030.01215.05
7.3.330.0000.00513.31
7.3.320.0030.00413.08
7.3.310.0050.00316.41
7.3.300.0000.00616.30
7.3.290.0070.00716.27
7.3.280.0090.00916.29
7.3.270.0030.02117.40
7.3.260.0150.00516.40
7.3.250.0110.01016.38
7.3.240.0070.01016.48
7.3.230.0070.01016.39
7.3.210.0060.01216.58
7.3.200.0090.00916.38
7.3.190.0160.00016.67
7.3.180.0130.00716.38
7.3.170.0140.00316.43
7.3.160.0080.00816.32
7.2.330.0030.01416.72
7.2.320.0030.01316.38
7.2.310.0060.00916.71
7.2.300.0060.01116.52
7.2.290.0160.00016.64
7.1.70.0030.00617.13
7.1.60.0030.00717.04
7.1.00.0900.07020.83
7.0.200.0120.00314.95
7.0.140.0930.06020.12
7.0.130.1130.06720.36
7.0.120.0930.05720.32
7.0.110.1030.05720.20
7.0.100.1230.08320.25
7.0.90.1570.08720.20
7.0.80.0200.06720.36
7.0.70.1530.09020.19
7.0.60.0100.06720.27
7.0.50.0800.06020.20
7.0.40.1200.07020.38
7.0.30.0170.06320.34
7.0.20.0930.07720.18
7.0.10.0800.06020.36
7.0.00.0100.08020.34
5.6.290.0130.06020.87
5.6.280.0200.05720.95
5.6.270.0100.06020.97
5.6.260.0030.06321.04
5.6.250.0170.06321.08
5.6.240.0170.06320.98
5.6.230.0230.07720.97
5.6.220.0200.08021.00
5.6.210.0070.06321.03
5.6.200.0270.05020.79
5.6.190.0270.07020.82
5.6.180.0070.06320.86
5.6.170.0130.08020.88
5.6.160.0230.06021.00
5.6.150.0030.08020.76
5.6.140.0130.05721.00
5.6.130.0130.06721.05
5.6.120.0100.06321.07
5.6.110.0170.06721.07
5.6.100.0070.06720.90
5.6.90.0200.05020.85
5.6.80.0130.05020.40
5.6.70.0070.05720.25
5.6.60.0030.06320.39
5.6.50.0100.07020.25
5.6.40.0100.05720.14
5.6.30.0100.05720.24
5.6.20.0200.06320.21
5.6.10.0100.07320.21
5.6.00.0100.07320.32

preferences:
34.22 ms | 403 KiB | 5 Q