3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = DateTime::createFromFormat("Y-m-d", "2015-10-01"); $end = DateTime::createFromFormat("Y-m-d", "2015-11-01"); $interval = new DateInterval("P1D"); $range = new DatePeriod($start, $interval, $end); foreach ($range as $date) { var_dump($date->format("Y-m-d")); }
Output for git.master, git.master_jit, rfc.property-hooks
string(10) "2015-10-01" string(10) "2015-10-02" string(10) "2015-10-03" string(10) "2015-10-04" string(10) "2015-10-05" string(10) "2015-10-06" string(10) "2015-10-07" string(10) "2015-10-08" string(10) "2015-10-09" string(10) "2015-10-10" string(10) "2015-10-11" string(10) "2015-10-12" string(10) "2015-10-13" string(10) "2015-10-14" string(10) "2015-10-15" string(10) "2015-10-16" string(10) "2015-10-17" string(10) "2015-10-18" string(10) "2015-10-19" string(10) "2015-10-20" string(10) "2015-10-21" string(10) "2015-10-22" string(10) "2015-10-23" string(10) "2015-10-24" string(10) "2015-10-25" string(10) "2015-10-26" string(10) "2015-10-27" string(10) "2015-10-28" string(10) "2015-10-29" string(10) "2015-10-30" string(10) "2015-10-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:
33.31 ms | 407 KiB | 5 Q