3v4l.org

run code in 300+ PHP versions simultaneously
<?php <?php function sum($a, $b): float { return $a + $b; } // Note that a float will be returned. var_dump(sum(1, 2)); ?>

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.0100.03720.26
7.0.00.0100.08320.30
5.6.160.0070.07720.47
5.6.150.0070.03718.19
5.6.140.0030.07018.18
5.6.130.0070.04318.14
5.6.120.0030.09021.14
5.6.110.0130.05721.11
5.6.100.0070.07721.00
5.6.90.0070.08721.10
5.6.80.0070.06720.28
5.5.300.0030.04018.08
5.5.290.0000.04318.07
5.5.280.0130.08320.64
5.5.270.0230.03720.67
5.5.260.0100.07020.86
5.5.250.0070.06720.54
5.5.240.0300.06720.11

preferences:
135.01 ms | 1394 KiB | 7 Q