run code in 200+ php & hhvm versions
Bugs & Features
<?php $start = new DateTime('01-01-2015'); $end = new DateTime('01-06-2015'); $period = new DatePeriod($start, new DateInterval('P1W'), $end); $firstDay = null; $lastDay = null; var_dump(array_pop($period));
based on HSEkL

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

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