3v4l.org

run code in 300+ PHP versions simultaneously
<?php <?php function throwException() { throw new \Exception; } for ($ii=0; $ii<1000;$ii++) { try { $response = throwException(); } catch (\Exception $exc) { echo ""; } }

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.0000.05720.16
5.6.160.0200.07320.55
5.6.150.0130.07318.15
5.6.140.0200.04718.18
5.6.130.0130.04318.27
5.6.120.0070.07720.98
5.6.110.0030.05721.03
5.6.100.0100.06021.13
5.6.90.0070.08721.13
5.6.80.0030.04020.43
5.5.300.0100.07718.10
5.5.290.0200.07318.01
5.5.280.0130.08020.93
5.5.270.0070.08720.86
5.5.260.0070.08320.75
5.5.250.0030.08720.68
5.5.240.0270.05320.15

preferences:
137.17 ms | 1394 KiB | 7 Q