3v4l.org

run code in 300+ PHP versions simultaneously
<?php $week_number = 20; $year = 2012; $monday = strtotime($year."W".str_pad($week_number,2,0,STR_PAD_LEFT)."1"); $sunday = strtotime($year."W".str_pad($week_number,2,0,STR_PAD_LEFT)."7"); var_dump($year."W".str_pad($week_number,2,0,STR_PAD_LEFT)."7"); echo "From " . date("l", $monday) . " " . date("j", $monday) . " of " . date("F", $monday) . " of " . $year . " to " . date("l", $sunday) . " " . date("j", $sunday) . " of " . date("F", $sunday) . " of " . $year;
Output for git.master, git.master_jit, rfc.property-hooks
string(8) "2012W207" From Monday 14 of May of 2012 to Sunday 20 of May of 2012

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