3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface I { } class B implements I { } class C extends B { function foo() {} } $rc = new \ReflectionClass('C'); $rm = $rc->getMethod('foo'); $drc = $rm->getDeclaringClass(); var_export($rc->getName() === $drc->getName());

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.0000.01416.38
8.3.50.0200.00521.20
8.3.40.0080.00818.67
8.3.30.0090.00618.35
8.3.20.0110.00420.34
8.3.10.0040.00423.61
8.3.00.0050.00321.81
8.2.180.0090.00616.75
8.2.170.0140.00722.96
8.2.160.0030.01020.39
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00320.81
8.2.120.0030.00626.35
8.2.110.0060.00321.06
8.2.100.0130.00017.84
8.2.90.0080.00019.14
8.2.80.0000.00817.97
8.2.70.0040.00417.50
8.2.60.0090.00017.93
8.2.50.0030.00618.10
8.2.40.0040.00420.64
8.2.30.0050.00219.47
8.2.20.0020.00517.72
8.2.10.0000.00717.94
8.2.00.0040.00418.12
8.1.280.0100.01025.92
8.1.270.0100.00722.02
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0070.00322.81
8.1.230.0030.00717.77
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0000.01017.35
8.1.190.0000.00817.22
8.1.180.0000.00818.10
8.1.170.0080.00018.67
8.1.160.0040.00422.05
8.1.150.0040.00420.74
8.1.140.0040.00419.59
8.1.130.0050.00317.69
8.1.120.0040.00417.44
8.1.110.0070.00017.43
8.1.100.0030.00517.36
8.1.90.0000.00817.45
8.1.80.0000.00817.51
8.1.70.0040.00417.36
8.1.60.0000.00717.44
8.1.50.0080.00017.45
8.1.40.0040.00417.53
8.1.30.0030.00617.63
8.1.20.0040.00417.50
8.1.10.0000.00817.56
8.1.00.0000.00817.55
8.0.300.0080.00018.77
8.0.290.0070.00016.63
8.0.280.0000.00718.55
8.0.270.0030.00317.27
8.0.260.0060.00017.26
8.0.250.0000.00716.95
8.0.240.0060.00016.83
8.0.230.0000.00716.99
8.0.220.0040.00416.82
8.0.210.0000.00716.81
8.0.200.0000.00616.82
8.0.190.0040.00416.84
8.0.180.0050.00316.95
8.0.170.0040.00416.89
8.0.160.0050.00316.79
8.0.150.0070.00016.77
8.0.140.0040.00416.82
8.0.130.0060.00013.33
8.0.120.0080.00016.90
8.0.110.0000.00716.91
8.0.100.0000.00716.71
8.0.90.0050.00216.77
8.0.80.0070.00716.86
8.0.70.0080.00016.68
8.0.60.0070.00016.75
8.0.50.0040.00416.83
8.0.30.0090.00717.10
8.0.20.0120.00917.40
8.0.10.0000.00816.87
8.0.00.0070.01316.77
7.4.330.0000.00516.66
7.4.320.0060.00016.50
7.4.300.0040.00416.49
7.4.290.0030.00616.52
7.4.280.0030.00516.64
7.4.270.0040.00416.63
7.4.260.0030.00316.46
7.4.250.0000.00816.57
7.4.240.0040.00416.50
7.4.230.0030.00316.63
7.4.220.0150.00416.53
7.4.210.0130.00716.40
7.4.200.0080.00016.60
7.4.160.0130.00316.54
7.4.150.0110.00617.40
7.4.140.0160.00317.86
7.4.130.0060.01216.37
7.4.120.0110.00816.68
7.4.110.0080.01116.51
7.4.100.0120.00916.43
7.4.90.0140.00416.41
7.4.80.0040.01319.39
7.4.70.0070.01116.48
7.4.60.0040.01316.61
7.4.50.0070.00716.59
7.4.40.0090.01016.50
7.4.30.0140.00316.63
7.4.00.0070.00814.91
7.3.330.0000.00513.22
7.3.320.0050.00013.16
7.3.310.0000.00716.27
7.3.300.0000.00716.10
7.3.290.0060.01216.21
7.3.280.0090.00916.21
7.3.270.0130.00617.40
7.3.260.0040.01416.11
7.3.240.0070.01216.34
7.3.230.0140.00916.39
7.3.210.0160.00016.42
7.3.200.0130.01119.39
7.3.190.0090.00916.37
7.3.180.0100.00716.32
7.3.170.0090.00616.31
7.3.160.0130.00316.28
7.3.120.0090.00914.42
7.3.110.0110.00714.62
7.3.100.0100.00314.39
7.3.90.0030.00614.71
7.3.80.0060.00314.42
7.3.70.0030.00614.79
7.3.60.0100.00314.43
7.3.50.0070.00314.49
7.3.40.0130.00014.75
7.3.30.0040.00714.58
7.3.20.0100.00616.38
7.3.10.0000.01516.36
7.3.00.0070.00716.61
7.2.330.0060.01316.64
7.2.320.0140.01316.64
7.2.310.0070.01316.45
7.2.300.0180.00016.56
7.2.290.0100.00616.80
7.2.250.0070.01015.16
7.2.240.0070.01015.20
7.2.230.0090.00315.02
7.2.220.0000.01215.05
7.2.210.0090.00914.67
7.2.200.0040.01515.02
7.2.190.0030.00814.73
7.2.180.0090.00314.84
7.2.170.0060.00615.17
7.2.60.0030.01016.59
7.2.00.0040.00819.25
7.1.330.0090.00615.75
7.1.320.0060.00915.71
7.1.310.0050.00515.68
7.1.300.0030.00615.55
7.1.290.0030.01015.52
7.1.280.0050.00315.64
7.1.270.0040.00715.71
7.1.260.0040.00815.90
7.1.200.0030.01015.74
7.1.100.0130.00318.08
7.1.70.0050.00317.09
7.1.60.0100.01319.28
7.1.50.0060.00616.80
7.1.00.0030.07722.54
7.0.200.0040.00416.80
7.0.60.0100.07321.84
7.0.50.0130.07317.86
7.0.40.0200.07320.24
7.0.30.0300.07720.20
7.0.20.0330.07320.30
7.0.10.0000.04720.15
7.0.00.0130.08320.05
5.6.210.0030.05720.52
5.6.200.0100.05318.28
5.6.190.0000.05020.55
5.6.180.0470.04320.63
5.6.170.0370.07320.55
5.6.160.0130.07720.61
5.6.150.0030.06718.18
5.6.140.0030.05318.14
5.6.130.0170.06318.20
5.6.120.0030.04721.02
5.6.110.0070.03720.99
5.6.100.0030.08320.98
5.6.90.0030.04020.97
5.6.80.0030.07020.37
5.5.350.4170.03720.34
5.5.340.0000.06018.10
5.5.330.0100.06720.27
5.5.320.0200.04320.19
5.5.310.0170.08720.41
5.5.300.0170.02717.99
5.5.290.0030.04017.98
5.5.280.0100.08020.73
5.5.270.0070.06720.88
5.5.260.0100.09020.98
5.5.250.0170.06320.80
5.5.240.0000.08720.24

preferences:
52.72 ms | 401 KiB | 5 Q