3v4l.org

run code in 300+ PHP versions simultaneously
<?php $startDateTime = new DateTime('2016-10-17'); $currentDate = new DateTime('2017-2-5'); //$startDateTime->modify('+1 day'); $currentWeekNumber = $currentDate->format('W') + (($currentDate->format('o') - $startDateTime->format('o')) * 52); //Subtract the start week from the current week (and add 1, since we start at Week 1) to find the current study week echo $currentWeekNumber - $startDateTime->format('W') + 1;
Output for git.master, git.master_jit, rfc.property-hooks
16

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