3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $start = new DateTime('2013-11-07'); $end = new DateTime('2013-12-31'); $weeks = array(); while ($start < $end) { $weeks[] = $start->format('d-m-Y'); $start->modify('+1 week'); } print_r($weeks);

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

Output for Typed properties v2
Array ( [0] => 07-11-2013 [1] => 14-11-2013 [2] => 21-11-2013 [3] => 28-11-2013 [4] => 05-12-2013 [5] => 12-12-2013 [6] => 19-12-2013 [7] => 26-12-2013 )
Output for Array change keys
Array ( [0] => 07-11-2013 [1] => 14-11-2013 [2] => 21-11-2013 [3] => 28-11-2013 [4] => 05-12-2013 [5] => 12-12-2013 [6] => 19-12-2013 [7] => 26-12-2013 )
Output for Lexical anon
Array ( [0] => 07-11-2013 [1] => 14-11-2013 [2] => 21-11-2013 [3] => 28-11-2013 [4] => 05-12-2013 [5] => 12-12-2013 [6] => 19-12-2013 [7] => 26-12-2013 )

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