3v4l.org

run code in 500+ PHP versions simultaneously
<?php function getDateForWeekDay($year, $weekNo, $dayOfWeekNo) // return the exact date of this weekday, using ISO 8601 { $date = new DateTime(); $date->setISODate($year, $weekNo, $dayOfWeekNo); return $date->format('Y-m-d'); } for ($day = 1; $day <= 7; $day++) { $dates[$day] = getDateForWeekDay(2020, 34, $day); } print_r($dates);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [1] => 2020-08-17 [2] => 2020-08-18 [3] => 2020-08-19 [4] => 2020-08-20 [5] => 2020-08-21 [6] => 2020-08-22 [7] => 2020-08-23 )

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:
78.23 ms | 1273 KiB | 4 Q