3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new DateTime('2010-12-02'); $start->modify('first day of this month'); $end = new DateTime('2012-05-06'); $end->modify('first day of next month'); $interval = DateInterval::createFromDateString('1 month'); $period = new DatePeriod($start, $interval, $end); foreach ($period as $dt) { echo $dt->format(F") . PHP_EOL; }

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.10.0130.08720.06
7.0.00.0170.05020.30
5.6.160.0030.09020.54
5.6.150.0030.05318.22
5.6.140.0030.08318.15
5.6.130.0070.03718.17
5.6.120.0070.07020.89
5.6.110.0030.09021.09
5.6.100.0130.07720.94
5.6.90.0070.05021.10
5.6.80.0000.07020.48
5.5.300.0070.05017.98
5.5.290.0030.07017.97
5.5.280.0100.03320.84
5.5.270.0170.07720.79
5.5.260.0030.07020.67
5.5.250.0200.07320.65
5.5.240.0130.05020.15

preferences:
142.07 ms | 1386 KiB | 7 Q