3v4l.org

run code in 300+ PHP versions simultaneously
<?php $startTime = strtotime('2013-01-01 3:00'); $finishTime = strtotime('2013-03-01 3:00'); $lastMonthDay = strtotime(sprintf('last day of Jan'), $startTime); $dateTime = strtotime(sprintf('%s %s %s', 'Mon', '3:00', 'Jan'), $startTime); for (;$dateTime <= $lastMonthDay, $dateTime <= $finishTime; $dateTime = strtotime('+1 week', $dateTime)) { echo date ('d-m-Y H:i') . PHP_EOL; }
Output for git.master, git.master_jit, rfc.property-hooks
08-10-2013 13:04 08-10-2013 13:04 08-10-2013 13:04 08-10-2013 13:04 08-10-2013 13:04 08-10-2013 13:04 08-10-2013 13:04 08-10-2013 13: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:
31.76 ms | 401 KiB | 8 Q