3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { function poop (self $a): self { } } $refMethod = new ReflectionMethod('Foo', 'poop'); $refParam = $refMethod->getParameters()[0]; print_r(array( 'paramType' => $refParam->getType()->getName(), 'returnType' => $refMethod->getReturnType()->getName(), ));

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.30.0170.00717.80
8.5.20.0120.00718.12
8.4.180.0120.01219.57
8.4.170.0110.01121.64
8.4.90.0160.00417.76
8.3.300.0100.01019.91
8.3.180.0080.01216.74
8.3.50.0040.00416.74

preferences:
42.71 ms | 524 KiB | 5 Q