3v4l.org

run code in 300+ PHP versions simultaneously
<?php function returns_null(): void { return null; // Fatal error: A void function must not return a value } function returns_null(): void { return ; // Fatal error: A void function must not return a value } try { returns_null(); echo "OK!"; } catch (Error $e) { echo "Error:"; var_dump($e); }

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.20.0300.07320.24
7.0.10.0100.08320.16
7.0.00.0030.06320.22
5.6.170.0430.02720.34
5.6.160.0030.09020.47
5.6.150.0070.08018.16
5.6.140.0100.07718.26
5.6.130.0030.04318.25
5.6.120.0170.06021.02
5.6.110.0070.08721.01
5.6.100.0200.07321.01
5.6.90.0070.05020.88
5.6.80.0030.08320.51
5.5.310.0330.04020.38
5.5.300.0070.05018.06
5.5.290.0030.05318.08
5.5.280.0000.05720.84
5.5.270.0170.07320.88
5.5.260.0100.03720.89
5.5.250.0070.04320.58
5.5.240.0230.04320.16

preferences:
131.6 ms | 1398 KiB | 7 Q