3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (PHP_VERSION_ID !== 70300) { exit; } $begin = new DateTime('2019-03-25 20:34:56', new DateTimezone('UTC')); $end = new DateTime('2019-04-15 20:34:59', new DateTimezone('UTC')); $daterange1 = new DatePeriod($begin, new DateInterval('P1W'), $end); $daterange2 = new DatePeriod($begin, new DateInterval('P1W'), $end); echo loop($daterange1, 0), "\n\n"; //no pause echo loop($daterange2, 1); //1 second pause function loop($daterange, $sleep_int) { $count = 0; foreach ($daterange as $week) { echo "{$week->format('r')}\n"; $count++; sleep($sleep_int); //seconds } return $count; }
Output for git.master, git.master_jit, rfc.property-hooks

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