3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('UTC'); $start = new DateTime('2020-03-08 04:00'); $interval = DateInterval::createFromDateString('-1 hour'); $period = new DatePeriod($start, $interval, 10); foreach ($period as $date) { echo $date->format('Y-m-d h:i a') . PHP_EOL; }
Output for git.master, git.master_jit, rfc.property-hooks
2020-03-08 04:00 am 2020-03-08 03:00 am 2020-03-08 02:00 am 2020-03-08 01:00 am 2020-03-08 12:00 am 2020-03-07 11:00 pm 2020-03-07 10:00 pm 2020-03-07 09:00 pm 2020-03-07 08:00 pm 2020-03-07 07:00 pm 2020-03-07 06:00 pm

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:
174.62 ms | 406 KiB | 5 Q