3v4l.org

run code in 300+ PHP versions simultaneously
<?php //create calendar //make callDate week monday calStart $calStart = new DateTime(date_format(date_create("2016-12-20"),"Y-m-d")); $daysFromMon = date_format($calStart, "N") - 1; $calStart = date_add($calStart, date_interval_create_from_date_string("-$daysFromMon days")); //make calEnd 28 days after calStart $calEnd = new DateTime(date_format(date_add($calStart, date_interval_create_from_date_string("+28 days")),"Y-m-d")); $interval = new DateInterval('P1D'); $period = new DatePeriod($calStart, $interval, $calEnd); foreach($period as $curDay){ echo date_format($curDay,"Y-m-d")."<br>"; }
Output for git.master, git.master_jit, rfc.property-hooks

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:
90.56 ms | 1626 KiB | 4 Q