3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait ExpectsFooMethod { abstract public function foo(): string; } trait ProvidesFooMethod { use ExpectsFooMethod; public function foo(): string {} } final readonly class FooMethodImpl { use ProvidesFooMethod; }

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.130.0110.00817.89
8.4.120.0090.01020.67
8.4.110.0130.00722.54
8.4.100.0110.00917.61
8.4.90.0050.00720.70
8.4.80.0050.00319.50
8.4.70.0110.01017.64
8.4.60.0120.01217.60
8.4.50.0090.01117.72
8.3.260.0130.00616.73
8.3.250.0120.00818.91
8.3.240.0120.00817.41
8.3.230.0130.00716.66
8.3.220.0120.00619.06
8.3.210.0060.00216.75
8.3.200.0120.00616.39
8.3.190.0100.00816.63
8.3.180.0100.00916.59
8.3.50.0120.00916.72
8.2.290.0040.00316.58
8.2.280.0100.00916.64

preferences:
34.98 ms | 403 KiB | 5 Q