3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new DateTime('2013-02-01 00:00:00'); $end = new DateTime('2013-02-01 23:59:59'); $interval = new DateInterval('PT1H'); $period = new DatePeriod($start, $interval, $end); foreach ($period as $dt) { echo $dt->format("Y-m-d H:i:s") . PHP_EOL; }
Output for git.master, git.master_jit, rfc.property-hooks
2013-02-01 00:00:00 2013-02-01 01:00:00 2013-02-01 02:00:00 2013-02-01 03:00:00 2013-02-01 04:00:00 2013-02-01 05:00:00 2013-02-01 06:00:00 2013-02-01 07:00:00 2013-02-01 08:00:00 2013-02-01 09:00:00 2013-02-01 10:00:00 2013-02-01 11:00:00 2013-02-01 12:00:00 2013-02-01 13:00:00 2013-02-01 14:00:00 2013-02-01 15:00:00 2013-02-01 16:00:00 2013-02-01 17:00:00 2013-02-01 18:00:00 2013-02-01 19:00:00 2013-02-01 20:00:00 2013-02-01 21:00:00 2013-02-01 22:00:00 2013-02-01 23:00:00

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.8 ms | 402 KiB | 8 Q