3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new DateTime(); $end = new DateTime(); $end->modify('+5 days'); $period = new DatePeriod($start, new DateInterval('P1D'), $end); foreach ($period as $dt) { echo $dt->format('c') . "\n"; } foreach ($period as $dt) { echo $dt->format('d') . "\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
2014-07-31T19:08:48+02:00 2014-08-01T19:08:48+02:00 2014-08-02T19:08:48+02:00 2014-08-03T19:08:48+02:00 2014-08-04T19:08:48+02:00 31 01 02 03 04

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