3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = strtotime(date('2020-06-01 12:00')); for($x = 1; $x<=10; $x++) // increment $x until 10 { $period = $start - ($x * 1209600); // 1209600 is equivalent to 14 days. Multiply by $x $period_end = date('Y-m-d H:i', strtotime(date('Y-m-d H:i', $period). ' + 13 days')); echo date('Y-m-d H:i', $period) . " - " . $period_end ."<br>\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
2020-05-18 12:00 - 2020-05-31 12:00<br> 2020-05-04 12:00 - 2020-05-17 12:00<br> 2020-04-20 12:00 - 2020-05-03 12:00<br> 2020-04-06 12:00 - 2020-04-19 12:00<br> 2020-03-23 11:00 - 2020-04-05 11:00<br> 2020-03-09 11:00 - 2020-03-22 11:00<br> 2020-02-24 11:00 - 2020-03-08 11:00<br> 2020-02-10 11:00 - 2020-02-23 11:00<br> 2020-01-27 11:00 - 2020-02-09 11:00<br> 2020-01-13 11:00 - 2020-01-26 11:00<br>

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.72 ms | 406 KiB | 5 Q