3v4l.org

run code in 300+ PHP versions simultaneously
<?php $r= new ReflectionClass(new class() { public function instance(): self { return $this; } }); $type= $r->getMethod('instance')->getReturnType(); var_dump($type->getName()); $o = new ($type->getName()); var_dump($o);

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.00.0160.01018.27
8.4.150.0110.00717.92
8.4.140.0120.01017.64
8.4.130.0150.00518.08
8.4.120.0110.00820.41
8.4.110.0070.00422.66
8.4.100.0060.00217.66
8.4.90.0110.00918.58
8.4.80.0040.00419.59
8.4.70.0070.01317.97
8.4.60.0090.01217.80
8.4.50.0140.00717.69
8.3.280.0100.01018.51
8.3.270.0110.00916.55
8.3.260.0080.01216.67
8.3.250.0100.00818.89
8.3.240.0100.00716.79
8.3.230.0050.00316.74
8.3.220.0060.00416.73
8.3.210.0080.00316.88
8.3.200.0110.00716.45
8.3.190.0130.00816.75
8.3.180.0110.00416.56
8.3.50.0110.00716.68
8.2.290.0080.01020.61
8.2.280.0100.00916.86

preferences:
52.32 ms | 403 KiB | 5 Q