3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { echo "trying\n". throw new Exception('threw-during-try'); } catch (Exception $e) { echo "catching\n". throw new Exception('threw-during-catch'); } finally { echo "finally-ing\n". }

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.08020.11
5.6.160.0070.04020.50
5.6.150.0030.04018.27
5.6.140.0000.04318.19
5.6.130.0100.07718.14
5.6.120.0030.08021.11
5.6.110.0100.08020.96
5.6.100.0170.07321.12
5.6.90.0030.08320.88
5.6.80.0070.07720.48
5.5.300.0030.06317.95
5.5.290.0000.04318.01
5.5.280.0000.04320.76
5.5.270.0070.03720.86
5.5.260.0070.08720.72
5.5.250.0070.07020.70
5.5.240.0300.06320.07

preferences:
141 ms | 1394 KiB | 7 Q