3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new DateTime('2013-10-01'); $end = new DateTime('2013-10-09'); $period = new DatePeriod($start, new DateInterval('P1D'), $end); foreach ($period as $p) { echo $p->format( "l Y-m-d H:i:s\n" ); } reset($period); foreach ($period as $p) { var_dump($p); }
Output for git.master, git.master_jit, rfc.property-hooks
Tuesday 2013-10-01 00:00:00 Wednesday 2013-10-02 00:00:00 Thursday 2013-10-03 00:00:00 Friday 2013-10-04 00:00:00 Saturday 2013-10-05 00:00:00 Sunday 2013-10-06 00:00:00 Monday 2013-10-07 00:00:00 Tuesday 2013-10-08 00:00:00 Deprecated: reset(): Calling reset() on an object is deprecated in /in/63r31 on line 11 object(DateTime)#9 (3) { ["date"]=> string(26) "2013-10-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#8 (3) { ["date"]=> string(26) "2013-10-02 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#10 (3) { ["date"]=> string(26) "2013-10-03 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#9 (3) { ["date"]=> string(26) "2013-10-04 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#8 (3) { ["date"]=> string(26) "2013-10-05 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#10 (3) { ["date"]=> string(26) "2013-10-06 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#9 (3) { ["date"]=> string(26) "2013-10-07 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#8 (3) { ["date"]=> string(26) "2013-10-08 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }

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:
43.92 ms | 405 KiB | 8 Q