3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getStartAndEndDate($week, $year) { $dto = new DateTime(); $ret['week_start'] = $dto->setISODate($year, $week)->format('Y-m-d'); $ret['week_end'] = $dto->modify('+6 days')->format('Y-m-d'); return $ret; } print_r(getStartAndEndDate(24, 2014));
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [week_start] => 2014-06-09 [week_end] => 2014-06-15 )

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