3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); function (string $foo = null, array $bar) { var_dump($foo, $bar); } foo(null, [123]);

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)
7.0.10.0170.07020.06
7.0.00.0070.06720.25
5.6.160.0100.08720.46
5.6.150.0030.07018.13
5.6.140.0130.07318.12
5.6.130.0030.04018.14
5.6.120.0030.07720.98
5.6.110.0100.07321.05
5.6.100.0070.06321.12
5.6.90.0070.07020.97
5.6.80.0070.06720.43
5.5.300.0030.04017.98
5.5.290.0130.06717.95
5.5.280.0030.09020.98
5.5.270.0130.04320.77
5.5.260.0300.06320.98
5.5.250.0100.04020.70
5.5.240.0070.03320.07

preferences:
140.82 ms | 1394 KiB | 7 Q