3v4l.org

run code in 300+ PHP versions simultaneously
<?php $this_monday = new DateTime('Monday this week'); $next_monday = new DateTime('Monday next week'); $interval = new DateInterval('P1D'); $datePeriod = new DatePeriod($this_monday, $interval, $next_monday); foreach($datePeriod as $day) { printf("%s | %s<br>\n", $day->format('l'), $day->format('d-m-Y')); }
Output for git.master, git.master_jit, rfc.property-hooks
Monday | 12-05-2014<br> Tuesday | 13-05-2014<br> Wednesday | 14-05-2014<br> Thursday | 15-05-2014<br> Friday | 16-05-2014<br> Saturday | 17-05-2014<br> Sunday | 18-05-2014<br>

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:
44.89 ms | 401 KiB | 8 Q