3v4l.org

run code in 300+ PHP versions simultaneously
<?php $begin = new DateTime( '2016-01-11' ); $numMonths = 2; for($i=0; $i<$numMonths; $i++) { var_dump($begin->modify( '+1 day' )->format("Y-m-d"); }

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.08320.24
7.0.10.0030.09020.09
7.0.00.0070.04020.20
5.6.170.0300.07720.53
5.6.160.0200.06320.71
5.6.150.0100.07318.14
5.6.140.0070.06018.11
5.6.130.0000.05018.21
5.6.120.0100.06020.97
5.6.110.0070.04721.04
5.6.100.0070.08720.98
5.6.90.0030.04721.10
5.6.80.0170.07020.38
5.5.310.0430.06720.36
5.5.300.0030.04317.95
5.5.290.0070.04018.01
5.5.280.0100.07320.80
5.5.270.0030.08720.86
5.5.260.0070.03720.84
5.5.250.0130.07320.78
5.5.240.0200.07020.16

preferences:
142.42 ms | 1394 KiB | 7 Q