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.1.340.0090.01217.65

preferences:
45.48 ms | 480 KiB | 5 Q