3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace ParserReflection\Stub; abstract class AbstractClassWithMethods { const TEST = 5; public function __construct(){} public function __destruct(){} public function explicitPublicFunc(){} function implicitPublicFunc(){} protected function protectedFunc(){} private function privateFunc(){} static function staticFunc(){} abstract function abstractFunc(); final function finalFunc(){} /** * @return string */ public function funcWithDocAndBody() { static $a =5, $test = '1234'; return 'hello'; } /** * @return \Generator */ public function generatorYieldFunc() { $index = 0; while ($index < 1e3) { yield $index; } } /** * @return int */ public function noGeneratorFunc() { $gen = function () { yield 10; }; return 10; } private function testParam($a, $b = null, $c = self::class, $d = self::TEST) {} } $refMethod = new \ReflectionMethod('ParserReflection\Stub\AbstractClassWithMethods', 'testParam'); echo "Exported: ", $refMethod;

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.0120.00616.13
8.3.50.0130.00318.30
8.3.40.0040.01118.67
8.3.30.0090.00618.44
8.3.20.0070.00020.19
8.3.10.0040.00421.78
8.3.00.0040.00419.25
8.2.180.0150.00618.41
8.2.170.0140.00322.96
8.2.160.0140.00020.39
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0000.00726.16
8.2.120.0040.01119.97
8.2.110.0060.00319.17
8.2.100.0040.00817.78
8.2.90.0030.00517.75
8.2.80.0060.00318.69
8.2.70.0030.00517.50
8.2.60.0030.00517.63
8.2.50.0090.00017.75
8.2.40.0000.01119.29
8.2.30.0040.00420.63
8.2.20.0030.00517.80
8.2.10.0040.00417.97
8.2.00.0030.00618.05
8.1.280.0080.00825.92
8.1.270.0090.00024.02
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0040.00422.06
8.1.230.0060.00620.87
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0000.00817.13
8.1.190.0050.00317.22
8.1.180.0000.00918.10
8.1.170.0050.00318.59
8.1.160.0020.00521.87
8.1.150.0040.00418.88
8.1.140.0040.00417.39
8.1.130.0000.00717.68
8.1.120.0000.00717.39
8.1.110.0000.00717.27
8.1.100.0040.00417.41
8.1.90.0000.00817.31
8.1.80.0040.00417.29
8.1.70.0020.00517.39
8.1.60.0060.00317.49
8.1.50.0030.00617.45
8.1.40.0040.00417.47
8.1.30.0000.00817.62
8.1.20.0040.00417.52
8.1.10.0050.00317.60
8.1.00.0000.00817.41
8.0.300.0090.00018.77
8.0.290.0000.00816.75
8.0.280.0000.00718.50
8.0.270.0030.00516.82
8.0.260.0030.00317.14
8.0.250.0080.00016.94
8.0.240.0070.00016.82
8.0.230.0030.00316.80
8.0.220.0040.00416.75
8.0.210.0000.00716.74
8.0.200.0000.00716.87
8.0.190.0030.00516.87
8.0.180.0070.00016.90
8.0.170.0050.00316.82
8.0.160.0070.00016.91
8.0.150.0040.00416.80
8.0.140.0020.00516.70
8.0.130.0000.00513.20
8.0.120.0040.00416.86
8.0.110.0000.00816.63
8.0.100.0000.00716.77
8.0.90.0000.00816.74
8.0.80.0110.00716.78
8.0.70.0050.00316.96
8.0.60.0050.00316.90
8.0.50.0000.00716.84
8.0.30.0100.00817.09
8.0.20.0180.00317.40
8.0.10.0040.00416.88
8.0.00.0100.00816.78
7.4.330.0060.00016.74
7.4.320.0030.00316.54
7.4.300.0030.00316.46
7.4.290.0000.00716.61
7.4.280.0000.00916.39
7.4.270.0030.00316.56
7.4.260.0040.00416.53
7.4.250.0040.00416.34
7.4.240.0000.00716.56
7.4.230.0030.00316.53
7.4.220.0170.00816.35
7.4.210.0030.01616.62
7.4.200.0040.00416.57
7.4.160.0110.00616.53
7.4.150.0070.01117.40
7.4.140.0110.01117.86
7.4.130.0120.01216.43
7.4.120.0070.01016.48
7.4.110.0060.01016.73
7.4.100.0090.00916.47
7.4.90.0140.00716.51
7.4.80.0130.00419.39
7.4.70.0080.00816.28
7.4.60.0070.01416.58
7.4.50.0040.01516.25
7.4.40.0060.01016.46
7.4.30.0070.01116.68
7.4.00.0040.01414.91
7.3.330.0050.00013.04
7.3.320.0000.00513.24
7.3.310.0050.00216.29
7.3.300.0030.00316.25
7.3.290.0060.00816.18
7.3.280.0080.01216.25
7.3.270.0140.00317.40
7.3.260.0070.01116.37
7.3.250.0130.00816.40
7.3.240.0070.01216.27
7.3.230.0030.01816.40
7.3.210.0120.00616.57
7.3.200.0100.00716.27
7.3.190.0090.00816.57
7.3.180.0030.01316.31
7.3.170.0120.00916.27
7.3.160.0100.01016.23
7.3.120.0000.01714.64
7.3.110.0040.01114.63
7.3.100.0100.00314.59
7.3.90.0000.01414.76
7.3.80.0060.01214.72
7.3.70.0030.01414.93
7.3.60.0060.00914.83
7.3.50.0030.00814.86
7.3.40.0070.00714.73
7.3.30.0040.00814.74
7.3.20.0040.01216.47
7.3.10.0070.00316.54
7.3.00.0040.01116.64
7.2.330.0110.00716.67
7.2.320.0130.00316.63
7.2.310.0000.01616.23
7.2.300.0030.01316.71
7.2.290.0160.00616.52
7.2.240.0070.00715.00
7.2.230.0000.01514.70
7.2.220.0110.00314.61
7.2.210.0030.01214.93
7.2.200.0040.01214.60
7.2.190.0150.00014.64
7.2.180.0030.01014.88
7.2.170.0040.00714.78
7.2.160.0110.00414.50
7.2.150.0030.00816.71
7.2.140.0040.00816.89
7.2.130.0090.00616.76
7.2.120.0060.00916.73
7.2.110.0060.00916.54
7.2.100.0000.01116.89
7.2.90.0130.00016.45
7.2.80.0060.01016.82
7.2.70.0030.00816.93
7.2.60.0110.00416.96
7.2.50.0000.01016.75
7.2.40.0000.01416.81
7.2.30.0030.00916.95
7.2.20.0070.00716.55
7.2.10.0000.01216.77
7.2.00.0190.00618.07
7.1.330.0000.01715.53
7.1.320.0070.00715.46
7.1.310.0030.01015.99
7.1.300.0100.00015.36
7.1.290.0030.01415.62
7.1.280.0030.01015.30
7.1.270.0040.01115.76
7.1.260.0080.00415.72
7.1.250.0000.00915.71
7.1.200.0040.00815.45
7.1.100.0060.00617.66
7.1.70.0000.00716.67
7.1.60.0070.01719.36
7.1.50.0060.00616.95
7.1.00.0030.07722.54
7.0.200.0040.00416.72
7.0.60.0000.08319.79
7.0.50.0030.04317.86
7.0.40.0030.05720.24
7.0.30.0270.06320.17
7.0.20.0300.06320.23
7.0.10.0030.05320.15
7.0.00.0030.06020.10
5.6.280.0030.06720.94
5.6.210.0070.08020.56
5.6.200.0000.04318.22
5.6.190.0100.07720.67
5.6.180.0530.06320.57
5.6.170.0170.05020.51
5.6.160.0000.04720.44
5.6.150.0100.07718.16
5.6.140.0070.04318.17
5.6.130.0070.06718.14
5.6.120.0100.05021.00
5.6.110.0130.07721.05
5.6.100.0100.04721.13
5.6.90.0100.08320.89
5.6.80.0070.06320.37
5.5.350.0170.04020.31
5.5.340.0030.08718.04
5.5.330.0070.06320.21
5.5.320.0030.08319.98
5.5.310.0230.07320.14
5.5.300.0070.04017.95
5.5.290.0070.08317.93
5.5.280.0100.08020.82
5.5.270.0100.08020.88
5.5.260.0070.06720.77
5.5.250.0100.08320.60
5.5.240.0330.07020.38

preferences:
48.44 ms | 400 KiB | 5 Q