3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "hi"; 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.0170.06020.16
5.6.160.0070.03720.41
5.6.150.0100.07318.18
5.6.140.0030.05018.29
5.6.130.0030.04018.16
5.6.120.0130.07721.12
5.6.110.0170.08020.98
5.6.100.0100.07721.11
5.6.90.0130.05720.99
5.6.80.0030.04320.40
5.5.300.0100.03717.98
5.5.290.0070.08018.05
5.5.280.0030.08020.85
5.5.270.0070.07720.73
5.5.260.0070.05320.81
5.5.250.0070.08020.55
5.5.240.0230.07720.19

preferences:
137.68 ms | 1394 KiB | 7 Q