3v4l.org

run code in 500+ PHP versions simultaneously
<?php final class SkipUsedByReflectionAsArrayCallable { public function run(): int { $reflectionMethod = new \ReflectionMethod(...[$this, 'methodInjection']); return $reflectionMethod->getNumberOfParameters(); } private function methodInjection(): void { } } $obj = new SkipUsedByReflectionAsArrayCallable(); echo $obj->run();

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.90.0050.00316.95
8.5.80.0060.00616.83
8.5.70.0050.00316.73
8.4.240.0100.00819.45
8.4.230.0040.00919.45
8.4.220.0050.00619.48
8.4.90.0060.00417.93
8.3.330.0120.00918.29
8.3.320.0070.00318.44
8.3.180.0060.00216.63
8.3.50.0090.00316.77
8.2.320.0050.00419.72
8.1.340.0090.01217.65

preferences:
54.23 ms | 536 KiB | 5 Q