3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ClassA { /** @classA */ public function methodA() { } } class ClassB extends ClassA { 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()); var_dump($parent->getParentClass());

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.0070.00718.16
8.3.50.0120.00321.93
8.3.40.0100.01018.49
8.3.30.0140.00018.83
8.3.20.0040.00420.29
8.3.10.0050.00323.61
8.3.00.0040.00718.95
8.2.180.0140.00716.50
8.2.170.0040.01122.96
8.2.160.0030.01020.47
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0030.00626.16
8.2.120.0090.00019.13
8.2.110.0060.00322.07
8.2.100.0110.00017.59
8.2.90.0090.00019.05
8.2.80.0040.00417.97
8.2.70.0070.00417.50
8.2.60.0060.00317.80
8.2.50.0040.00418.07
8.2.40.0090.00317.94
8.2.30.0040.00418.24
8.2.20.0000.00717.61
8.2.10.0050.00318.09
8.2.00.0000.00719.28
8.1.280.0070.01025.92
8.1.270.0000.00823.82
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0070.00323.88
8.1.230.0060.00619.16
8.1.220.0060.00317.74
8.1.210.0080.00018.77
8.1.200.0030.00617.13
8.1.190.0030.00617.10
8.1.180.0040.00418.10
8.1.170.0050.00318.59
8.1.160.0040.00421.86
8.1.150.0040.00418.63
8.1.140.0040.00417.32
8.1.130.0000.00717.79
8.1.120.0090.00017.45
8.1.110.0080.00017.33
8.1.100.0000.00717.40
8.1.90.0040.00417.39
8.1.80.0030.00717.40
8.1.70.0070.00017.35
8.1.60.0050.00317.41
8.1.50.0030.00617.46
8.1.40.0030.00617.41
8.1.30.0050.00317.66
8.1.20.0060.00317.57
8.1.10.0040.00417.58
8.1.00.0040.00417.34
8.0.300.0070.00018.77
8.0.290.0050.00316.58
8.0.280.0040.00418.30
8.0.270.0000.00717.09
8.0.260.0060.00017.20
8.0.250.0030.00316.84
8.0.240.0040.00416.79
8.0.230.0070.00016.76
8.0.220.0070.00016.81
8.0.210.0040.00416.82
8.0.200.0030.00316.92
8.0.190.0060.00316.94
8.0.180.0000.01016.79
8.0.170.0030.00516.76
8.0.160.0020.00516.86
8.0.150.0100.00016.69
8.0.140.0000.00716.77
8.0.130.0030.00313.30
8.0.120.0030.00516.75
8.0.110.0050.00316.73
8.0.100.0040.00416.89
8.0.90.0030.00516.88
8.0.80.0180.00316.76
8.0.70.0070.00016.79
8.0.60.0000.00716.71
8.0.50.0000.00816.66
8.0.30.0090.01017.01
8.0.20.0120.00917.40
8.0.10.0040.00416.88
8.0.00.0130.00516.58
7.4.330.0000.00715.00
7.4.320.0000.00616.50
7.4.300.0030.00316.55
7.4.290.0000.00816.43
7.4.280.0040.00416.54
7.4.270.0000.00716.42
7.4.260.0070.00016.55
7.4.250.0000.00716.51
7.4.240.0030.00516.51
7.4.230.0040.00416.52
7.4.220.0040.01516.54
7.4.210.0030.01316.48
7.4.200.0030.00316.64
7.4.160.0180.00016.31
7.4.150.0190.00317.40
7.4.140.0100.00817.86
7.4.130.0090.01016.34
7.4.120.0080.01016.33
7.4.110.0090.00616.48
7.4.100.0070.01016.36
7.4.90.0000.01716.41
7.4.80.0150.01119.39
7.4.70.0090.01216.63
7.4.60.0060.01616.20
7.4.50.0000.00416.32
7.4.40.0110.00516.48
7.4.30.0070.01016.40
7.4.00.0060.00914.82
7.3.330.0000.00613.18
7.3.320.0000.00513.07
7.3.310.0030.00316.05
7.3.300.0030.00316.05
7.3.290.0030.01016.22
7.3.280.0070.01216.22
7.3.270.0080.00817.40
7.3.260.0140.00316.42
7.3.250.0100.00716.32
7.3.240.0060.01516.17
7.3.230.0110.01116.39
7.3.210.0110.01016.26
7.3.200.0120.00919.39
7.3.190.0070.01016.28
7.3.180.0110.00416.58
7.3.170.0090.00916.27
7.3.160.0030.01216.47
7.3.120.0070.00714.44
7.2.330.0030.01416.66
7.2.320.0100.00716.52
7.2.310.0090.01316.62
7.2.300.0060.01116.32
7.2.290.0060.01016.55
7.2.60.0060.00616.54
7.2.00.0040.01119.41
7.1.200.0090.00315.27
7.1.100.0060.00618.05
7.1.70.0000.00716.68
7.1.60.0110.00016.99
7.1.50.0030.02016.82
7.1.00.0030.07722.27
7.0.200.0030.01316.70
7.0.140.0000.07722.07
7.0.60.0100.08319.82
7.0.50.0100.03717.92
7.0.40.0130.06020.40
7.0.30.0270.05720.08
7.0.20.0330.07020.30
7.0.10.0330.07020.09
7.0.00.0130.07720.20
5.6.280.0000.07720.87
5.6.210.0130.05320.70
5.6.200.0130.08018.29
5.6.190.0000.05320.46
5.6.180.0070.05020.63
5.6.170.0270.05320.50
5.6.160.0030.05020.57
5.6.150.0100.06318.17
5.6.140.0070.08018.17
5.6.130.0130.08018.18
5.6.120.0070.08021.01
5.6.110.0130.05321.04
5.6.100.0070.05320.89
5.6.90.0030.08021.00
5.6.80.0130.07020.38
5.6.70.0200.08020.37
5.5.350.0100.08320.39
5.5.340.0070.07718.07
5.5.330.0170.07720.56
5.5.320.0270.07020.31
5.5.310.0230.05720.27
5.5.300.0070.03718.09
5.5.290.0000.08317.95
5.5.280.0030.06020.77
5.5.270.0100.08020.84
5.5.260.0130.04320.88
5.5.250.0030.09020.63
5.5.240.0170.03720.19
5.4.450.0530.04031.25
5.4.440.0400.05029.32
5.4.430.0500.02729.29
5.4.420.0200.06719.29
5.4.410.0230.04329.25
5.4.400.0330.04028.63
5.4.390.0200.07719.17
5.4.380.0070.06018.75
5.4.370.0070.05718.67
5.4.360.0030.06018.74
5.4.350.0200.05318.46
5.4.340.0170.04718.54
5.4.320.0040.03712.50
5.4.310.0030.03912.50
5.4.300.0070.03912.50
5.4.290.0050.04312.50
5.4.280.0090.05312.39
5.4.270.0070.05212.39
5.4.260.0040.06012.39
5.4.250.0070.06512.39
5.4.240.0060.05612.40
5.4.230.0080.03612.39
5.4.220.0050.03712.39
5.4.210.0060.03512.38
5.4.200.0050.03812.39
5.4.190.0100.03112.38
5.4.180.0060.03712.38
5.4.170.0090.03612.40
5.4.160.0050.04712.39
5.4.150.0070.03612.39
5.4.140.0070.03612.07
5.4.130.0100.03212.06
5.4.120.0060.03512.02
5.4.110.0030.03812.02
5.4.100.0100.03312.01
5.4.90.0100.04012.02
5.4.80.0060.03812.01
5.4.70.0040.03912.01
5.4.60.0080.03212.00
5.4.50.0050.03512.01
5.4.40.0090.03812.00
5.4.30.0050.04212.00
5.4.20.0070.03412.00
5.4.10.0050.03612.00
5.4.00.0070.03611.48
5.3.290.0070.04612.80
5.3.280.0100.03412.71
5.3.270.0040.04312.72
5.3.260.0020.04412.71
5.3.250.0070.03712.72
5.3.240.0050.03912.72
5.3.230.0090.03712.70
5.3.220.0030.04312.68
5.3.210.0050.04012.68
5.3.200.0060.03712.68
5.3.190.0030.04212.68
5.3.180.0080.03612.67
5.3.170.0070.03712.67
5.3.160.0040.03912.67
5.3.150.0070.03712.67
5.3.140.0090.03512.66
5.3.130.0090.03712.66
5.3.120.0070.03912.66
5.3.110.0090.03612.66
5.3.100.0050.04012.12
5.3.90.0100.03612.10
5.3.80.0030.04512.09
5.3.70.0050.03712.09
5.3.60.0050.03712.08
5.3.50.0060.03812.02
5.3.40.0040.03912.04
5.3.30.0040.03611.98
5.3.20.0030.04011.76
5.3.10.0060.05111.73
5.3.00.0070.04111.72
5.2.170.0080.0279.22
5.2.160.0030.0309.23
5.2.150.0020.0349.22
5.2.140.0060.0309.22
5.2.130.0080.0279.18
5.2.120.0070.0289.18
5.2.110.0040.0309.18
5.2.100.0040.0319.18
5.2.90.0050.0299.18
5.2.80.0040.0319.18
5.2.70.0070.0289.18
5.2.60.0030.0339.13
5.2.50.0020.0339.10
5.2.40.0080.0309.07
5.2.30.0070.0279.05
5.2.20.0030.0309.04
5.2.10.0100.0248.95
5.2.00.0060.0408.81
5.1.60.0070.0338.09
5.1.50.0090.0298.09
5.1.40.0050.0258.07
5.1.30.0040.0318.42
5.1.20.0030.0298.44
5.1.10.0050.0268.16
5.1.00.0050.0318.17
5.0.50.0030.0216.64
5.0.40.0050.0216.50
5.0.30.0040.0386.32
5.0.20.0070.0186.28
5.0.10.0050.0256.26
5.0.00.0020.0326.25
4.4.90.0000.0184.78
4.4.80.0050.0164.75
4.4.70.0020.0184.76
4.4.60.0040.0244.76
4.4.50.0040.0214.77
4.4.40.0050.0284.70
4.4.30.0010.0174.76
4.4.20.0030.0234.84
4.4.10.0030.0154.84
4.4.00.0050.0274.75
4.3.110.0030.0164.67
4.3.100.0050.0194.66
4.3.90.0030.0184.63
4.3.80.0040.0234.58
4.3.70.0020.0154.63
4.3.60.0030.0144.62
4.3.50.0020.0164.63
4.3.40.0030.0244.54
4.3.30.0040.0213.30
4.3.20.0020.0213.28
4.3.10.0030.0153.23
4.3.00.0000.02025.05

preferences:
39.42 ms | 401 KiB | 5 Q