3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new DateTime('2010-12-31'); $start->modify('first day of this month'); $end = new DateTime('2012-05-31'); $end->modify('first day of next month'); $interval = DateInterval::createFromDateString('1 month'); $period = new DatePeriod($start, $interval, $end); foreach ($period as $dt) { echo $dt->format("m") . "<br>\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
12<br> 01<br> 02<br> 03<br> 04<br> 05<br> 06<br> 07<br> 08<br> 09<br> 10<br> 11<br> 12<br> 01<br> 02<br> 03<br> 04<br> 05<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:
55.55 ms | 1977 KiB | 4 Q