3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait SimpleTrait { final public function final_pub() {} public function pub() {} } class Test { use SimpleTrait { final_pub as private; pub as final; pub as private; } } foreach (['final_pub', 'pub'] as $method) { echo "--- Method: $method ---\n"; $rm = new ReflectionMethod(Test::class, $method); var_dump($rm->isFinal()); var_dump($rm->isPublic()); var_dump($rm->isPrivate()); }

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.4.120.0110.01022.34
8.4.110.0120.00722.80
8.4.100.0100.00717.73
8.4.90.0090.01217.82
8.4.80.0030.00717.82
8.4.70.0130.00817.74
8.4.60.0130.00817.66
8.4.50.0120.00919.50
8.4.40.0070.01017.54
8.4.30.0160.00318.61
8.4.20.0090.00019.50
8.4.10.0170.00317.74
8.3.250.0090.01019.10
8.3.240.0140.00616.35
8.3.230.0140.00716.85
8.3.220.0130.00516.99
8.3.210.0080.00616.49
8.3.200.0110.00816.48
8.3.190.0120.00616.48
8.3.180.0100.00916.52
8.3.170.0090.00918.82
8.3.160.0060.01218.54
8.3.150.0070.01116.56
8.3.140.0140.00416.77
8.3.50.0120.00616.42
8.3.20.0130.00525.17
8.3.10.0060.00324.18
8.3.00.0130.00427.11
8.2.290.0090.01020.63
8.2.280.0090.00518.25
8.2.270.0060.01316.58
8.2.260.0150.00316.45
8.2.150.0200.00024.18
8.2.140.0090.00324.18
8.2.130.0050.00826.13
8.2.120.0110.00526.13
8.2.110.0050.01026.13
8.2.100.0100.00226.13
8.2.90.0060.00726.13
8.2.80.0120.00326.13
8.2.70.0080.00326.13
8.2.60.0100.00526.13
8.2.50.0060.00526.13
8.2.40.0070.00226.13
8.2.30.0090.00526.13
8.2.20.0080.00526.13
8.2.10.0060.00426.13
8.2.00.0060.00326.13
8.1.330.0100.00916.54
8.1.320.0080.01015.81
8.1.310.0150.00316.02
8.1.270.0060.00324.18
8.1.260.0050.00426.13
8.1.250.0040.00526.13
8.1.240.0060.00426.13
8.1.230.0130.00026.13
8.1.220.0020.00926.13
8.1.210.0030.00626.13
8.1.200.0070.00126.13
8.1.190.0040.00526.13
8.1.180.0020.00726.13
8.1.170.0030.00626.13
8.1.160.0070.00326.13
8.1.150.0060.00426.13
8.1.140.0050.00526.13
8.1.130.0050.00426.13
8.1.120.0050.00326.13
8.1.110.0060.00326.13
8.1.100.0070.00326.13
8.1.90.0060.00326.13
8.1.80.0040.00426.13
8.1.70.0070.00226.13
8.1.60.0010.00826.13
8.1.50.0050.00526.13
8.1.40.0090.00026.13
8.1.30.0090.00126.13
8.1.20.0060.00326.13
8.1.10.0040.00626.13
8.1.00.0050.00526.13

preferences:
29.3 ms | 403 KiB | 5 Q