3v4l.org

run code in 300+ PHP versions simultaneously
<?php $quarters = array( 1 => '01-01', 2 => '04-01', 3 => '07-01', 4 => '10-01' ); $month = date("n"); $currentQuarter = ceil($month / 3); echo 'We are currently in Q'.$currentQuarter.' of '.date("Y")."\n"; $nextQuarter = $currentQuarter+1; if (!isset($quarters[$nextQuarter])) { $nextQuarter = 1; $year = date("Y")+1; } else { $year = date("Y"); } echo 'The first day of the next quarter is '.date("Y-m-d", strtotime($year.'-'.$quarters[$nextQuarter]));
Output for rfc.property-hooks, git.master, git.master_jit
We are currently in Q1 of 2023 The first day of the next quarter is 2023-04-01

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:
41.23 ms | 1400 KiB | 4 Q