3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function foo(): ?int { return 1; } public function baz() { return 2; } } $foo = new ReflectionMethod((new A), "foo"); $baz = new ReflectionMethod((new A), "baz"); echo "foo: " . $foo->getReturnType(); echo "\n"; echo "baz: " . $baz->getReturnType();

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.3.130.0040.00418.44
8.3.120.0030.01320.46
8.3.110.0070.00018.15
8.3.100.0230.00024.06
8.3.90.0190.00324.06
8.3.80.0240.00024.06
8.3.70.0220.00424.06
8.3.60.0230.00024.06
8.3.50.0200.00324.06
8.3.40.0180.00424.06
8.3.30.0190.00024.06
8.3.20.0130.00824.06
8.3.10.0180.00724.06
8.3.00.0200.00024.06
8.2.250.0080.00018.49
8.2.240.0090.00916.61
8.2.230.0130.00320.94
8.2.220.0000.00924.06
8.2.210.0170.00024.06
8.2.200.0190.00024.06
8.2.190.0170.00324.06
8.2.180.0160.00324.06
8.2.170.0150.00724.06
8.2.160.0130.00924.06
8.2.150.0130.00824.06
8.2.140.0180.00424.06
8.2.130.0150.00724.06
8.2.120.0170.00624.06
8.2.110.0080.01224.06
8.2.100.0210.00024.06
8.2.90.0170.00324.06
8.2.80.0210.00024.06
8.2.70.0180.00424.06
8.2.60.0140.00724.06
8.2.50.0210.00024.06
8.2.40.0150.00324.06
8.2.30.0180.00024.06
8.2.20.0200.00024.06
8.2.10.0190.00024.06
8.2.00.0190.00324.06
8.1.300.0040.00416.13
8.1.290.0080.01324.06
8.1.280.0230.00024.06
8.1.270.0160.00424.06
8.1.260.0190.00424.06
8.1.250.0130.01024.06
8.1.240.0140.00524.06
8.1.230.0120.00724.06
8.1.220.0150.00324.06
8.1.210.0170.00024.06
8.1.200.0180.00024.06
8.1.190.0180.00024.06
8.1.180.0140.00524.06
8.1.170.0120.00624.06
8.1.160.0170.00224.06
8.1.150.0150.00424.06
8.1.140.0220.00424.06
8.1.130.0140.00524.06
8.1.120.0160.00324.06
8.1.110.0130.00624.06
8.1.100.0140.00724.06
8.1.90.0130.00624.06
8.1.80.0180.00024.06
8.1.70.0160.00324.06
8.1.60.0160.00424.06
8.1.50.0210.00024.06
8.1.40.0150.00424.06
8.1.30.0140.00524.06
8.1.20.0130.00624.06
8.1.10.0150.00624.06
8.1.00.0220.00024.06

preferences:
25.91 ms | 403 KiB | 5 Q