3v4l.org

run code in 300+ PHP versions simultaneously
<?php date.timezone = America/Los_Angeles $start = new DateTime('2014-08-10'); $start->modify('first day of this month'); $end = new DateTime('2012-02-09'); $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("Y-m") . 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)
5.4.310.0270.04718.87
5.4.300.0300.06018.85
5.4.290.0270.06318.85
5.4.280.0230.04018.87
5.4.270.0200.07718.99
5.4.260.0270.05319.18
5.4.250.0270.03318.94
5.4.240.0270.03719.20
5.4.230.0170.06019.22
5.4.220.0170.06019.09
5.4.210.0200.05719.13
5.4.200.0170.04318.84
5.4.190.0230.04019.08
5.4.180.0230.03318.84
5.4.170.0230.05019.13
5.4.160.0270.04318.80
5.4.150.0300.05719.06
5.4.140.0370.05716.33
5.4.130.0300.06316.41
5.4.120.0200.07016.29
5.4.110.0230.05716.58
5.4.100.0130.04316.56
5.4.90.0230.04316.45
5.4.80.0270.06316.31
5.4.70.0170.04716.52
5.4.60.0200.04316.25
5.4.50.0170.04316.51
5.4.40.0200.07016.55
5.4.30.0270.06316.16
5.4.20.0270.03316.52
5.4.10.0200.08016.51
5.4.00.0200.07015.77
5.3.280.0170.05714.69
5.3.270.0230.06014.46
5.3.260.0230.04714.64
5.3.250.0230.03714.59
5.3.240.0270.04714.48
5.3.230.0230.04014.63
5.3.220.0230.03314.51
5.3.210.0270.05014.43
5.3.200.0170.06014.52
5.3.190.0230.04714.50
5.3.180.0270.06714.40
5.3.170.0200.07314.40
5.3.160.0170.04714.52
5.3.150.0230.04314.42
5.3.140.0330.05314.52
5.3.130.0230.06714.43
5.3.120.0270.06314.64
5.3.110.0200.03714.39
5.3.100.0200.05314.09
5.3.90.0200.06313.88
5.3.80.0270.03013.87
5.3.70.0200.06714.04
5.3.60.0230.07013.83
5.3.50.0270.03713.78
5.3.40.0300.04013.74
5.3.30.0200.03313.86
5.3.20.0230.07313.47
5.3.10.0270.05013.45
5.3.00.0270.04713.47
5.2.170.0170.06313.16
5.2.160.0170.04013.16
5.2.150.0130.03313.16
5.2.140.0200.05713.16
5.2.130.0230.04313.16
5.2.120.0270.04013.16
5.2.110.0200.04013.16
5.2.100.0170.06313.16
5.2.90.0270.05013.16
5.2.80.0200.05713.16
5.2.70.0200.03713.16
5.2.60.0270.05313.16
5.2.50.0330.03313.16
5.2.40.0130.05713.16
5.2.30.0130.04013.16
5.2.20.0200.05313.16
5.2.10.0100.03313.16
5.2.00.0130.05713.16
5.1.60.0230.04013.16
5.1.50.0130.05013.16
5.1.40.0170.03313.16
5.1.30.0130.06013.16
5.1.20.0270.02713.16
5.1.10.0200.03313.16
5.1.00.0170.03013.16
5.0.50.0130.02313.16
5.0.40.0070.02713.16
5.0.30.0130.05713.16
5.0.20.0130.04313.16
5.0.10.0100.04013.16
5.0.00.0100.06313.16
4.4.90.0070.03313.16
4.4.80.0070.02713.16
4.4.70.0100.03013.16
4.4.60.0070.02713.16
4.4.50.0070.02313.16
4.4.40.0130.05013.16
4.4.30.0070.03013.16
4.4.20.0100.01713.16
4.4.10.0130.02013.16
4.4.00.0070.05313.16
4.3.110.0100.03013.16
4.3.100.0100.03313.16
4.3.90.0070.02713.16
4.3.80.0070.05713.16
4.3.70.0070.02713.16
4.3.60.0070.03013.16
4.3.50.0070.03313.16
4.3.40.0000.04713.16
4.3.30.0000.02313.16
4.3.20.0030.03713.16
4.3.10.0070.03313.16
4.3.00.0000.02713.16

preferences:
142.35 ms | 1386 KiB | 7 Q