3v4l.org

run code in 300+ PHP versions simultaneously
<?php $end = new DateTime(); $start = new DateTime(); $hourStart = $start->format('H'); $minuteStart = $start->format('i') > 30 ? 30 : 0; $start = $start->setTime($hourStart, $minuteStart)->modify('-48 hours'); $dateInterval = new DateInterval('PT30M'); $datePeriod = new DatePeriod($start, $dateInterval, $end); foreach($datePeriod as $date) { $d1 = $date->format('m/d/y - H:i'); echo "$d1\n"; // Your logic here }
Output for git.master, git.master_jit, rfc.property-hooks
11/16/15 - 08:30 11/16/15 - 09:00 11/16/15 - 09:30 11/16/15 - 10:00 11/16/15 - 10:30 11/16/15 - 11:00 11/16/15 - 11:30 11/16/15 - 12:00 11/16/15 - 12:30 11/16/15 - 13:00 11/16/15 - 13:30 11/16/15 - 14:00 11/16/15 - 14:30 11/16/15 - 15:00 11/16/15 - 15:30 11/16/15 - 16:00 11/16/15 - 16:30 11/16/15 - 17:00 11/16/15 - 17:30 11/16/15 - 18:00 11/16/15 - 18:30 11/16/15 - 19:00 11/16/15 - 19:30 11/16/15 - 20:00 11/16/15 - 20:30 11/16/15 - 21:00 11/16/15 - 21:30 11/16/15 - 22:00 11/16/15 - 22:30 11/16/15 - 23:00 11/16/15 - 23:30 11/17/15 - 00:00 11/17/15 - 00:30 11/17/15 - 01:00 11/17/15 - 01:30 11/17/15 - 02:00 11/17/15 - 02:30 11/17/15 - 03:00 11/17/15 - 03:30 11/17/15 - 04:00 11/17/15 - 04:30 11/17/15 - 05:00 11/17/15 - 05:30 11/17/15 - 06:00 11/17/15 - 06:30 11/17/15 - 07:00 11/17/15 - 07:30 11/17/15 - 08:00 11/17/15 - 08:30 11/17/15 - 09:00 11/17/15 - 09:30 11/17/15 - 10:00 11/17/15 - 10:30 11/17/15 - 11:00 11/17/15 - 11:30 11/17/15 - 12:00 11/17/15 - 12:30 11/17/15 - 13:00 11/17/15 - 13:30 11/17/15 - 14:00 11/17/15 - 14:30 11/17/15 - 15:00 11/17/15 - 15:30 11/17/15 - 16:00 11/17/15 - 16:30 11/17/15 - 17:00 11/17/15 - 17:30 11/17/15 - 18:00 11/17/15 - 18:30 11/17/15 - 19:00 11/17/15 - 19:30 11/17/15 - 20:00 11/17/15 - 20:30 11/17/15 - 21:00 11/17/15 - 21:30 11/17/15 - 22:00 11/17/15 - 22:30 11/17/15 - 23:00 11/17/15 - 23:30 11/18/15 - 00:00 11/18/15 - 00:30 11/18/15 - 01:00 11/18/15 - 01:30 11/18/15 - 02:00 11/18/15 - 02:30 11/18/15 - 03:00 11/18/15 - 03:30 11/18/15 - 04:00 11/18/15 - 04:30 11/18/15 - 05:00 11/18/15 - 05:30 11/18/15 - 06:00 11/18/15 - 06:30 11/18/15 - 07:00 11/18/15 - 07:30 11/18/15 - 08:00 11/18/15 - 08:30

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