3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ClassA { /** @classA */ public function methodA() { } } class ClassB extends ClassA { /** @classB */ public function methodA() { } } $refl = new ReflectionClass('ClassB'); $mthB = $refl->getMethod('methodA'); var_dump($mthB->getDocComment()); var_dump($mthB->getDeclaringClass()); $parent = $refl->getParentClass(); $mthA = $parent->getMethod('methodA'); var_dump($mthA->getDocComment());

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.40.0140.00718.54
8.3.30.0070.00718.96
8.3.20.0040.00420.29
8.3.10.0080.00023.66
8.3.00.0050.00320.89
8.2.170.0070.00722.96
8.2.160.0070.00720.52
8.2.150.0000.00724.18
8.2.140.0030.00524.66
8.2.130.0070.00026.16
8.2.120.0080.00019.23
8.2.110.0060.00322.25
8.2.100.0120.00017.78
8.2.90.0110.00019.09
8.2.80.0040.00417.97
8.2.70.0060.00617.63
8.2.60.0000.00917.90
8.2.50.0090.00018.07
8.2.40.0030.00617.97
8.2.30.0000.00818.06
8.2.20.0080.00017.58
8.2.10.0000.00717.90
8.2.00.0030.00619.46
8.1.270.0040.00423.71
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0120.00423.80
8.1.230.0120.00019.00
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0090.00017.23
8.1.190.0000.00817.13
8.1.180.0060.00318.10
8.1.170.0030.00518.43
8.1.160.0000.00722.00
8.1.150.0000.00718.56
8.1.140.0040.00417.44
8.1.130.0030.00317.81
8.1.120.0040.00417.30
8.1.110.0030.00617.43
8.1.100.0040.00417.40
8.1.90.0050.00317.36
8.1.80.0060.00317.42
8.1.70.0030.00317.32
8.1.60.0090.00017.55
8.1.50.0000.00817.45
8.1.40.0000.00817.50
8.1.30.0000.00817.63
8.1.20.0030.00617.42
8.1.10.0030.00617.53
8.1.00.0040.00417.36
8.0.300.0070.00018.77
8.0.290.0000.00716.75
8.0.280.0030.00318.32
8.0.270.0070.00017.18
8.0.260.0060.00017.19
8.0.250.0030.00316.80
8.0.240.0070.00316.88
8.0.230.0040.00416.87
8.0.220.0030.00316.73
8.0.210.0000.00716.73
8.0.200.0040.00416.79
8.0.190.0000.00716.78
8.0.180.0070.00016.75
8.0.170.0040.00416.75
8.0.160.0050.00216.80
8.0.150.0030.00916.68
8.0.140.0030.00516.86
8.0.130.0000.00513.25
8.0.120.0030.00516.86
8.0.110.0070.00016.85
8.0.100.0030.00316.83
8.0.90.0040.00416.71
8.0.80.0090.00916.79
8.0.70.0000.00816.86
8.0.60.0040.00416.72
8.0.50.0000.00716.72
8.0.30.0120.00916.99
8.0.20.0120.00917.40
8.0.10.0000.00816.96
8.0.00.0090.00916.66
7.4.330.0030.00315.00
7.4.320.0030.00316.44
7.4.300.0070.00016.45
7.4.290.0050.00216.49
7.4.280.0060.00316.44
7.4.270.0000.00716.48
7.4.260.0040.00416.45
7.4.250.0070.00016.50
7.4.240.0050.00316.53
7.4.230.0000.00716.24
7.4.220.0140.00616.55
7.4.210.0040.01116.57
7.4.200.0040.00416.33
7.4.160.0080.00816.37
7.4.150.0110.00717.40
7.4.140.0090.00917.86
7.4.130.0090.00916.29
7.4.120.0080.01016.43
7.4.110.0100.00616.56
7.4.100.0130.00516.38
7.4.90.0100.00716.40
7.4.80.0090.00919.39
7.4.70.0070.01016.25
7.4.60.0050.01216.52
7.4.50.0050.00016.01
7.4.40.0120.00416.29
7.4.30.0050.01216.56
7.4.10.0100.00714.81
7.4.00.0070.00914.71
7.3.330.0030.00313.13
7.3.320.0000.00613.25
7.3.310.0070.00015.95
7.3.300.0070.00016.01
7.3.290.0110.00616.13
7.3.280.0050.01116.14
7.3.270.0140.00417.40
7.3.260.0120.00916.27
7.3.250.0120.00816.18
7.3.240.0140.00416.39
7.3.230.0140.00316.41
7.3.210.0070.01416.45
7.3.200.0120.00619.39
7.3.190.0150.00716.20
7.3.180.0060.01616.23
7.3.170.0040.01216.27
7.3.160.0120.00316.11
7.3.130.0050.01314.27
7.3.120.0070.00814.61
7.3.110.0100.00714.18
7.3.100.0070.00714.48
7.3.90.0000.01414.71
7.3.80.0070.00314.59
7.3.70.0030.00714.74
7.3.60.0090.00614.76
7.3.50.0070.00714.27
7.3.40.0090.00914.50
7.3.30.0080.00414.68
7.3.20.0100.00716.36
7.3.10.0110.00416.58
7.3.00.0110.00316.56
7.2.330.0120.00616.34
7.2.320.0030.01516.31
7.2.310.0100.00716.49
7.2.300.0070.01016.46
7.2.290.0060.01316.55
7.2.260.0130.00714.77
7.2.250.0030.01314.56
7.2.240.0030.01014.99
7.2.230.0060.01014.70
7.2.220.0030.01214.61
7.2.210.0040.00714.68
7.2.200.0000.01414.66
7.2.190.0030.01014.64
7.2.180.0090.00914.73
7.2.170.0100.00714.66
7.2.160.0030.00814.41
7.2.150.0030.01016.61
7.2.140.0060.00916.60
7.2.130.0090.00616.80
7.2.120.0070.00716.49
7.2.110.0060.00616.67
7.2.100.0040.01116.85
7.2.90.0110.00716.53
7.2.80.0000.01516.74
7.2.70.0080.00316.50
7.2.60.0060.00616.34
7.2.50.0030.00916.68
7.2.40.0120.00016.61
7.2.30.0120.00316.78
7.2.20.0040.00816.71
7.2.10.0060.00316.79
7.2.00.0030.01017.73
7.1.330.0030.01415.51
7.1.320.0040.01215.42
7.1.310.0090.00615.69
7.1.300.0070.00715.31
7.1.290.0100.00015.61
7.1.280.0030.00915.65
7.1.270.0000.01215.67
7.1.260.0080.00315.59
7.1.250.0170.00015.55
7.1.240.0050.00515.56
7.1.230.0030.01015.60
7.1.220.0080.00615.49
7.1.210.0080.00615.34
7.1.200.0030.00715.45
7.1.190.0000.01215.20
7.1.180.0060.00615.46
7.1.170.0140.00015.63
7.1.160.0040.00415.41
7.1.150.0120.00315.46
7.1.140.0090.00315.50
7.1.130.0070.00715.65
7.1.120.0100.00315.84
7.1.110.0030.00915.55
7.1.100.0040.00516.59
7.1.90.0030.00715.61
7.1.80.0030.01015.44
7.1.70.0030.00816.30
7.1.60.0090.00317.44
7.1.50.0030.01516.00
7.1.40.0030.00615.66
7.1.30.0060.00615.52
7.1.20.0000.01515.59
7.1.10.0030.01015.19
7.1.00.0030.04018.95
7.0.330.0090.00614.70
7.0.320.0080.00315.26
7.0.310.0040.00915.34
7.0.300.0090.00315.25
7.0.290.0040.00415.02
7.0.280.0060.00615.09
7.0.270.0030.01015.18
7.0.260.0090.00614.92
7.0.250.0040.00815.22
7.0.240.0040.00415.28
7.0.230.0070.00714.96
7.0.220.0000.00815.23
7.0.210.0100.00315.07
7.0.200.0010.01015.70
7.0.190.0080.00815.21
7.0.180.0030.00714.79
7.0.170.0080.00415.18
7.0.160.0060.00315.36
7.0.150.0030.01015.13
7.0.140.0030.04018.59
7.0.130.0030.00715.13
7.0.120.0080.00414.68
7.0.110.0000.00815.30
7.0.100.0030.01015.20
7.0.90.0070.00415.21
7.0.80.0030.00815.03
7.0.70.0070.00715.45
7.0.60.0070.04617.67
7.0.50.0050.02316.56
7.0.40.0020.02716.83
7.0.30.0110.02316.84
7.0.20.0150.04616.56
7.0.10.0170.03816.52
7.0.00.0070.04416.64
5.6.400.0060.00614.40
5.6.390.0030.00814.42
5.6.380.0120.00614.23
5.6.370.0060.00914.20
5.6.360.0030.00614.32
5.6.350.0000.01314.12
5.6.340.0020.00714.24
5.6.330.0000.01514.21
5.6.320.0040.01213.83
5.6.310.0030.00813.93
5.6.300.0030.01014.07
5.6.290.0070.00313.92
5.6.280.0080.03817.82
5.6.270.0070.00414.34
5.6.260.0040.00714.09
5.6.250.0110.00414.04
5.6.240.0030.00713.84
5.6.230.0000.01314.23
5.6.220.0030.01014.14
5.6.210.0070.04017.39
5.6.200.0090.01816.18
5.6.190.0100.04217.31
5.6.180.0060.03217.25
5.6.170.0190.03817.31
5.6.160.0070.04217.31
5.6.150.0030.02816.15
5.6.140.0050.02416.05
5.6.130.0080.02216.12
5.6.120.0080.02817.57
5.6.110.0050.03517.59
5.6.100.0080.03717.60
5.6.90.0100.03817.58
5.6.80.0020.02417.28
5.6.70.0220.03717.21
5.6.60.0060.00613.89
5.6.50.0080.00414.16
5.6.40.0090.00614.12
5.6.30.0040.01114.17
5.6.20.0060.00614.13
5.6.10.0080.00613.96
5.6.00.0000.01613.90
5.5.380.0030.00614.11
5.5.370.0070.01113.88
5.5.360.0050.00813.98
5.5.350.0070.04317.36
5.5.340.0050.03016.09
5.5.330.0030.02717.12
5.5.320.0180.02517.36
5.5.310.0120.03217.24
5.5.300.0100.03816.16
5.5.290.0050.02215.98
5.5.280.0040.03817.33
5.5.270.0110.04317.46
5.5.260.0060.04017.52
5.5.250.0030.02717.43
5.5.240.0050.04517.23
5.5.230.0080.00013.89
5.5.220.0030.00613.75
5.5.210.0000.01213.86
5.5.200.0090.00613.68
5.5.190.0100.00313.86
5.5.180.0060.00613.76
5.5.170.0060.00914.06
5.5.160.0040.01414.07
5.5.150.0030.00514.01
5.5.140.0060.00614.07
5.5.130.0030.00613.93
5.5.120.0030.01013.87
5.5.110.0090.00613.79
5.5.100.0000.01313.81
5.5.90.0070.00713.80
5.5.80.0000.01313.87
5.5.70.0070.00714.42
5.5.60.0060.00614.16
5.5.50.0120.00314.17
5.5.40.0040.00713.86
5.5.30.0040.00813.73
5.5.20.0100.00314.16
5.5.10.0030.00614.42
5.5.00.0000.01413.98
5.4.450.0150.03021.04
5.4.440.0080.03020.07
5.4.430.0160.02320.05
5.4.420.0170.02720.09
5.4.410.0180.02220.00
5.4.400.0150.02519.70
5.4.390.0160.02518.62
5.4.380.0120.02714.77
5.4.370.0070.03314.74
5.4.360.0140.02314.61
5.4.350.0100.03014.85
5.4.340.0120.02714.93
5.4.330.0060.00610.76
5.4.320.0090.02211.59
5.4.310.0050.02311.68
5.4.300.0070.02511.86
5.4.290.0050.02811.58
5.4.280.0060.02511.54
5.4.270.0050.02111.60
5.4.260.0070.02611.51
5.4.250.0070.03111.58
5.4.240.0040.03111.63
5.4.230.0040.02611.55
5.4.220.0050.02011.58
5.4.210.0050.01911.51
5.4.200.0070.01811.70
5.4.190.0040.02111.51
5.4.180.0040.02311.62
5.4.170.0050.02411.74
5.4.160.0070.02211.51
5.4.150.0030.02411.57
5.4.140.0020.02311.51
5.4.130.0050.01711.48
5.4.120.0050.01911.46
5.4.110.0050.02111.44
5.4.100.0030.02411.50
5.4.90.0080.02711.45
5.4.80.0080.02111.49
5.4.70.0050.02111.55
5.4.60.0040.02211.57
5.4.50.0050.02411.48
5.4.40.0080.02011.50
5.4.30.0060.02311.53
5.4.20.0070.02211.39
5.4.10.0040.02311.48
5.4.00.0070.02011.09
5.3.290.0030.02511.77
5.3.280.0030.02711.59
5.3.270.0060.03211.61
5.3.260.0050.02611.70
5.3.250.0070.02111.64
5.3.240.0100.02111.51
5.3.230.0090.02011.61
5.3.220.0050.02311.54
5.3.210.0040.02711.44
5.3.200.0050.02111.56
5.3.190.0080.02011.60
5.3.180.0040.02411.53
5.3.170.0060.01911.65
5.3.160.0070.02111.66
5.3.150.0060.02111.65
5.3.140.0090.02311.63
5.3.130.0010.02711.62
5.3.120.0050.02411.60
5.3.110.0030.02411.60
5.3.100.0020.02511.35
5.3.90.0030.02111.34
5.3.80.0060.01911.23
5.3.70.0050.02311.11
5.3.60.0050.02311.31
5.3.50.0070.02111.16
5.3.40.0050.02211.13
5.3.30.0030.02111.26
5.3.20.0060.02011.11
5.3.10.0060.02110.90
5.3.00.0050.02111.09
5.2.170.0060.0299.23
5.2.160.0080.0349.23
5.2.150.0080.0369.22
5.2.140.0020.0379.22
5.2.130.0080.0259.18
5.2.120.0040.0309.18
5.2.110.0040.0309.18
5.2.100.0040.0299.18
5.2.90.0100.0239.18
5.2.80.0030.0329.18
5.2.70.0040.0319.18
5.2.60.0030.0319.13
5.2.50.0030.0319.09
5.2.40.0040.0299.07
5.2.30.0020.0349.05
5.2.20.0060.0299.04
5.2.10.0040.0308.95
5.2.00.0070.0278.81
5.1.60.0050.0238.09
5.1.50.0070.0228.09
5.1.40.0050.0248.07
5.1.30.0020.0288.42
5.1.20.0030.0298.44
5.1.10.0110.0198.16
5.1.00.0040.0268.17
5.0.50.0050.0206.64
5.0.40.0070.0176.50
5.0.30.0080.0296.32
5.0.20.0020.0226.28
5.0.10.0030.0216.26
5.0.00.0070.0326.25
4.4.90.0050.0164.78
4.4.80.0040.0154.75
4.4.70.0040.0264.75
4.4.60.0060.0204.75
4.4.50.0030.0194.77
4.4.40.0040.0304.71
4.4.30.0020.0184.76
4.4.20.0030.0154.84
4.4.10.0040.0164.85
4.4.00.0020.0274.76
4.3.110.0050.0234.67
4.3.100.0030.0184.66
4.3.90.0030.0204.64
4.3.80.0030.0244.59
4.3.70.0030.0154.63
4.3.60.0020.0154.63
4.3.50.0030.0154.63
4.3.40.0030.0264.54
4.3.30.0030.0183.30
4.3.20.0040.0203.28
4.3.10.0030.0153.24
4.3.00.0030.01725.25

preferences:
74.45 ms | 400 KiB | 5 Q