3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new DateTime('2011-12-02'); $start->modify('first day of this month'); $end = new DateTime('2012-05-06'); $end->modify('first day of next month'); $interval = DateInterval::createFromDateString('1 month'); $period = new DatePeriod($start, $interval, $end); foreach ($period as $dt) { $monthNum=$dt->format("m"); echo $dt->format("Y").date('F', mktime(0, 0, 0, $monthNum, 10)). PHP_EOL; }
Output for git.master, git.master_jit, rfc.property-hooks
2011December 2012January 2012February 2012March 2012April 2012May

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