3v4l.org

run code in 300+ PHP versions simultaneously
<?php $lastDate = new DateTime(date("Y-m-01 12:00:00")); $lastDate->sub(new DateInterval("P1M")); $generateToThisDate = new DateTime(date("Y-m-01 12:00:00")); $generateToThisDate->add(new DateInterval("P20M")); while ($lastDate < $generateToThisDate) { $lastDate->add(new DateInterval("P1M")); echo $lastDate->format('Y-m-d') . " - " . $lastDate->format('Y-m-t') . "\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
2016-05-01 - 2016-05-31 2016-06-01 - 2016-06-30 2016-07-01 - 2016-07-31 2016-08-01 - 2016-08-31 2016-09-01 - 2016-09-30 2016-10-01 - 2016-10-31 2016-11-01 - 2016-11-30 2016-12-01 - 2016-12-31 2017-01-01 - 2017-01-31 2017-02-01 - 2017-02-28 2017-03-01 - 2017-03-31 2017-04-01 - 2017-04-30 2017-05-01 - 2017-05-31 2017-06-01 - 2017-06-30 2017-07-01 - 2017-07-31 2017-08-01 - 2017-08-31 2017-09-01 - 2017-09-30 2017-10-01 - 2017-10-31 2017-11-01 - 2017-11-30 2017-12-01 - 2017-12-31 2018-01-01 - 2018-01-31

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
257.15 ms | 407 KiB | 5 Q