3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('America/New_York'); $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 03:00 am 2020-03-08 03:00 am 2020-03-08 03:00 am 2020-03-08 03:00 am 2020-03-08 03:00 am 2020-03-08 03:00 am 2020-03-08 03:00 am 2020-03-08 03:00 am 2020-03-08 03:00 am

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