3v4l.org

run code in 300+ PHP versions simultaneously
<?php function nullret() { return null; } function ret() { return; } var_dump(typeof nullret()); var_dump(typeof ret());

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.0270.09020.15
7.0.10.0070.04320.33
7.0.00.0070.09320.18
5.6.170.0230.04720.39
5.6.160.0100.07020.50
5.6.150.0070.06318.19
5.6.140.0130.07318.15
5.6.130.0130.08318.15
5.6.120.0070.07021.01
5.6.110.0130.07320.97
5.6.100.0070.08321.05
5.6.90.0130.07720.97
5.6.80.0100.06720.45
5.5.310.0270.04720.23
5.5.300.0130.06017.95
5.5.290.0170.04018.03
5.5.280.0070.07020.88
5.5.270.0030.06020.84
5.5.260.0100.08720.65
5.5.250.0070.04020.50
5.5.240.0030.07320.07

preferences:
142.57 ms | 1386 KiB | 7 Q