3v4l.org

run code in 300+ PHP versions simultaneously
<?php $begin = new DateTime('2020-05-28 13:00'); $end = new DateTime('2020-05-28 15:30'); $timeRanges = []; while($begin < $end) { $output = $begin->format('H:i') . " - "; $begin->modify('+15 minutes'); /** Note, it modifies time by 15 minutes */ $output .= $begin->format('H:i'); $timeRanges[] = $output; } print_r($timeRanges);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => 13:00 - 13:15 [1] => 13:15 - 13:30 [2] => 13:30 - 13:45 [3] => 13:45 - 14:00 [4] => 14:00 - 14:15 [5] => 14:15 - 14:30 [6] => 14:30 - 14:45 [7] => 14:45 - 15:00 [8] => 15:00 - 15:15 [9] => 15:15 - 15: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:
34.23 ms | 402 KiB | 8 Q