3v4l.org

run code in 300+ PHP versions simultaneously
<?php $phpVersion = phpversion(); if ($phpVersion >= 7.0.0 ) { declare(strict_types=1); function foo(int $foo) { echo $foo; } foo(1); foo('hi'); }

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.00.0030.07320.22
5.6.160.0100.06320.52
5.6.150.0070.03718.29
5.6.140.0000.06318.18
5.6.130.0070.04718.24
5.6.120.0030.08721.14
5.6.110.0170.07321.04
5.6.100.0100.07020.88
5.6.90.0070.05020.96
5.6.80.0070.08020.53
5.5.300.0070.06318.09
5.5.290.0070.04317.99
5.5.280.0100.03720.64
5.5.270.0100.04020.95
5.5.260.0270.05720.76
5.5.250.0230.06320.46
5.5.240.0230.07020.15

preferences:
142.81 ms | 1394 KiB | 7 Q