3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new DateTime("Now"); $start->add(new DateInterval('PT1H')); $newTime = $start->getTimestamp() - round($start->getTimestamp() / (15 * 60)) * (15 * 60); $start->modify("-" . abs($newTime) . " seconds"); $end = new DateTime("2015-05-16 17:00"); $interval = new DateInterval('PT15M'); $period = new DatePeriod($start, $interval, $end); $current_date = date('d-M-Y g:i:s A'); $current_time = strtotime($current_date); foreach ($period as $dt) { echo $dt->format('H:i')."<br>"; }
Output for git.master, git.master_jit, rfc.property-hooks
15:47<br>16:02<br>16:17<br>16:32<br>16:47<br>

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