3v4l.org

run code in 300+ PHP versions simultaneously
<?php $CYCLES_PER_DAY = 3; // >= 1 // Co ile minut odpala cron (skrypt) – musi się dopasować do tego interwału $CRON_INTERVAL_MIN = 3; // np. */2 $START_HHMM = '06:00'; // np. 06:00 $FINAL_END_HHMM = '23:58'; // np. 23:58 $now = new DateTimeImmutable('now', new DateTimeZone('UTC')); $todayYmd = $now->format('Y-m-d'); $N = 29; $phase1Start = (new DateTimeImmutable($todayYmd.' '.$START_HHMM.':00', new DateTimeZone('UTC'))); $finalEnd = (new DateTimeImmutable($todayYmd.' '.$FINAL_END_HHMM.':00', new DateTimeZone('UTC'))); $slotsNeeded = max(1, $N); // co najmniej 1 slot $phase3Start = $finalEnd->modify('-'.(($slotsNeeded-1) * $CRON_INTERVAL_MIN).' minutes');
Output for git.master_jit, git.master

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:
26.95 ms | 405 KiB | 5 Q