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; } echo getStartAndEndDate(24, 2014);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Array to string conversion in /in/qjrf2 on line 10 Array

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.75 ms | 401 KiB | 8 Q