3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait SimpleTrait { protected function foo() {} } class TraitFixtureWithFinal { use SimpleTrait { foo as final; } } $rm = new ReflectionMethod(TraitFixtureWithFinal::class, 'foo'); var_dump($rm->isFinal()); var_dump($rm->isPrivate()); var_dump($rm->isPublic()); var_dump($rm->isProtected());

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.10.0150.00616.73
8.5.00.0130.00919.58
8.4.160.0140.00723.84
8.4.150.0030.00014.05
8.4.140.0140.00617.52
8.4.130.0060.00317.63
8.4.120.0130.00720.49
8.4.110.0080.01022.46
8.4.100.0100.01217.68
8.4.90.0140.00617.82
8.4.80.0050.00317.73
8.4.70.0110.00917.77
8.4.60.0060.00317.74
8.4.50.0110.00719.47
8.4.40.0170.00317.76
8.4.30.0070.01318.74
8.4.20.0110.00617.80
8.4.10.0090.00019.39
8.3.280.0140.01018.29
8.3.270.0130.00716.58
8.3.260.0040.00416.74
8.3.250.0110.00418.79
8.3.240.0140.00516.35
8.3.230.0130.00816.65
8.3.220.0090.00818.89
8.3.210.0100.00516.79
8.3.200.0060.00216.58
8.3.190.0070.00216.79
8.3.180.0150.00416.64
8.3.170.0120.00318.82
8.3.160.0110.00719.94
8.3.150.0060.00318.29
8.3.140.0000.00818.82
8.3.130.0030.01418.24
8.3.120.0030.00620.85
8.3.110.0040.00418.25
8.3.100.0080.00816.70
8.3.50.0160.00316.50
8.3.20.0160.00825.66
8.3.10.0080.01025.66
8.3.00.0120.00825.76
8.2.290.0040.00520.33
8.2.280.0110.00718.33
8.2.270.0120.00617.00
8.2.260.0030.00519.97
8.2.250.0120.00318.27
8.2.240.0100.01016.91
8.2.230.0040.00415.98
8.2.220.0080.00016.32
8.2.150.0290.00725.66
8.2.140.0100.01025.66
8.2.130.0080.01026.88
8.2.120.0070.01226.88
8.2.110.0140.00326.88
8.2.100.0100.00526.88
8.2.90.0110.00926.88
8.2.80.0150.00526.88
8.2.70.0130.01026.88
8.2.60.0110.00526.88
8.2.50.0040.01126.88
8.2.40.0070.00726.88
8.2.30.0110.00726.88
8.2.20.0120.00726.88
8.2.10.0090.00326.88
8.2.00.0060.00626.88
8.1.330.0110.00716.69
8.1.320.0090.00916.00
8.1.310.0150.00418.48
8.1.300.0030.01219.48
8.1.270.0040.01125.66
8.1.260.0070.00426.88
8.1.250.0120.00326.88
8.1.240.0070.00526.88
8.1.230.0120.00526.88
8.1.220.0110.00626.88
8.1.210.0050.00926.88
8.1.200.0070.00726.88
8.1.190.0060.00626.88
8.1.180.0070.00726.88
8.1.170.0050.00726.88
8.1.160.0080.00226.88
8.1.150.0030.01026.88
8.1.140.0030.00626.88
8.1.130.0040.00926.88
8.1.120.0060.00426.88
8.1.110.0030.00526.88
8.1.100.0050.00426.88
8.1.90.0050.00426.88
8.1.80.0030.00626.88
8.1.70.0050.00526.88
8.1.60.0040.00626.88
8.1.50.0060.00426.88
8.1.40.0050.00426.88
8.1.30.0040.00626.88
8.1.20.0030.00626.88
8.1.10.0070.00626.88
8.1.00.0050.00426.88

preferences:
77.22 ms | 403 KiB | 5 Q