3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = range(0, 1e6); for($i = 0; $i < 1e6; $i++) print;

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.0330.07020.26
7.0.10.0230.06320.33
7.0.00.0070.08020.19
5.6.170.0300.07320.51
5.6.160.0070.04320.55
5.6.150.0030.07718.27
5.6.140.0070.05718.15
5.6.130.0030.06318.28
5.6.120.0130.07321.09
5.6.110.0070.03721.00
5.6.100.0130.07020.97
5.6.90.0200.07021.07
5.6.80.0070.06720.50
5.5.310.0370.06020.32
5.5.300.0070.08717.99
5.5.290.0030.04018.08
5.5.280.0100.08320.80
5.5.270.0070.08320.87
5.5.260.0070.07720.67
5.5.250.0070.04320.70
5.5.240.0030.08320.23

preferences:
145.32 ms | 1398 KiB | 7 Q