3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new \DateTime('2014-10-25 04:00:00'); $end = new \DateTime('2014-10-27 04:00:00'); $interval = new \DateInterval('P1D'); $period = new \DatePeriod($start, $interval, 3); var_dump(iterator_to_array($period));
Output for git.master, git.master_jit, rfc.property-hooks
array(4) { [0]=> object(DateTime)#8 (3) { ["date"]=> string(26) "2014-10-25 04:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [1]=> object(DateTime)#10 (3) { ["date"]=> string(26) "2014-10-26 04:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [2]=> object(DateTime)#9 (3) { ["date"]=> string(26) "2014-10-27 04:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [3]=> object(DateTime)#11 (3) { ["date"]=> string(26) "2014-10-28 04: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:
51.64 ms | 402 KiB | 8 Q