3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo (?int $foo = null, ?int $bar = null): void { var_dump(func_num_args()); } foo(bar: 5);

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.0110.01222.79
8.4.150.0130.00617.57
8.4.140.0440.00817.23
8.4.130.0160.00917.29
8.4.90.0110.01117.33
8.3.280.0070.00416.14
8.3.270.0110.00816.16
8.3.260.0120.01016.27
8.3.180.0130.00716.33
8.3.50.0100.00916.39

preferences:
28.2 ms | 403 KiB | 5 Q