3v4l.org

run code in 300+ PHP versions simultaneously
<?php function will_throw_exception() { throw new Exception('My very best exception'); } try { will_throw_exception(); } catch (Exception $e) { echo 'Caught exception: ' . $e->getMessage(); throw nex Exception('fuck it'); } finally { echo PHP_EOL."Finally"; }

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.1.60.0370.01033.11
7.1.50.0730.01732.55
7.1.40.0930.01032.51
7.1.30.0530.02032.46
7.1.20.1030.01332.59
7.1.10.1030.01314.67
7.1.00.0470.01314.48
7.0.200.0470.01014.71
7.0.190.0630.01314.78
7.0.180.0600.01314.37
7.0.170.0700.00314.14
7.0.160.0800.00714.37
7.0.150.0370.01014.18
7.0.140.0500.00714.07
7.0.130.0530.00714.36
7.0.120.0500.00714.37
7.0.110.0570.01714.17
7.0.100.0500.02014.05
7.0.90.0430.01014.13
7.0.80.0630.00714.25
7.0.70.0500.01014.24
7.0.60.0600.01313.90
7.0.50.0600.01714.31
7.0.40.0630.01014.44
7.0.30.0930.01014.71
7.0.20.0370.01314.60
7.0.10.0430.01014.39
7.0.00.0530.00714.48

preferences:
142.04 ms | 1394 KiB | 7 Q