3v4l.org

run code in 300+ PHP versions simultaneously
<?php <?php declare(strict_types=1); try { function welcome(string $name) { echo 'Hello ' . $name; } } catch (Exception $e) { echo "Exception ". $e; } welcome(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.00.0100.05720.08
5.6.160.0070.08020.61
5.6.150.0170.07718.23
5.6.140.0030.08318.13
5.6.130.0200.06018.16
5.6.120.0070.08721.00
5.6.110.0070.07321.13
5.6.100.0070.04021.05
5.6.90.0070.08321.09
5.6.80.0030.08320.37
5.5.300.0070.04017.98
5.5.290.0000.04317.91
5.5.280.0100.08020.84
5.5.270.0100.04320.86
5.5.260.0070.08320.86
5.5.250.0070.07720.77
5.5.240.0230.04020.25

preferences:
140.69 ms | 1394 KiB | 7 Q