3v4l.org

run code in 300+ PHP versions simultaneously
<?php $month = 2; $year = 2017; $week = date("W", strtotime($year . "-" . $month ."-01")); Echo date("d/m/Y", strtotime($year . "-" . $month ."-01")) ." - "; $unix = strtotime($year."W".$week ."+1 week"); While(date("m", $unix) == $month){ Echo date("d/m/Y", $unix-86400) . "\n"; Echo date("d/m/Y", $unix) ." - "; $unix = $unix + (86400*7); } Echo date("d/m/Y", strtotime("last day of ".$year . "-" . $month));
Output for git.master, git.master_jit, rfc.property-hooks
01/02/2017 - 05/02/2017 06/02/2017 - 12/02/2017 13/02/2017 - 19/02/2017 20/02/2017 - 26/02/2017 27/02/2017 - 28/02/2017

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:
18.8 ms | 405 KiB | 5 Q