3v4l.org

run code in 300+ PHP versions simultaneously
<?php $lastDate = new DateTime(); $lastDate->sub(new DateInterval("P1M")); $generateToThisDate = new DateTime(); $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-30 - 2016-05-31 2016-06-30 - 2016-06-30 2016-07-30 - 2016-07-31 2016-08-30 - 2016-08-31 2016-09-30 - 2016-09-30 2016-10-30 - 2016-10-31 2016-11-30 - 2016-11-30 2016-12-30 - 2016-12-31 2017-01-30 - 2017-01-31 2017-03-02 - 2017-03-31 2017-04-02 - 2017-04-30 2017-05-02 - 2017-05-31 2017-06-02 - 2017-06-30 2017-07-02 - 2017-07-31 2017-08-02 - 2017-08-31 2017-09-02 - 2017-09-30 2017-10-02 - 2017-10-31 2017-11-02 - 2017-11-30 2017-12-02 - 2017-12-31 2018-01-02 - 2018-01-31 2018-02-02 - 2018-02-28

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:
71.43 ms | 407 KiB | 5 Q