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.20.0080.00820.24
8.5.10.0070.01016.59
8.5.00.0110.01222.79
8.4.170.0140.00823.87
8.4.160.0110.01023.11
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.300.0130.00918.72
8.3.290.0120.00820.66
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
8.2.300.0120.01017.86
8.1.340.0120.00717.36

preferences:
31.38 ms | 403 KiB | 5 Q