3v4l.org

run code in 300+ PHP versions simultaneously
<?php $weekModifier = 0; $date = new DateTime(); if($date->format('N') !== 1) { $date->sub(new DateInterval('P'. $date->format('N') . 'D')); } $interval = new DateInterval('P'.abs($weekModifier).'W'); if($weekModifier > 0) { $date->add($interval); } else { $date->sub($interval); } for($i = 1; $i <= 7; $i++) { echo $date->add(new DateInterval('P1D'))->format('l Y-m-d') . "<br>\n"; } ?>
Output for git.master, git.master_jit, rfc.property-hooks
Monday 2021-03-08<br> Tuesday 2021-03-09<br> Wednesday 2021-03-10<br> Thursday 2021-03-11<br> Friday 2021-03-12<br> Saturday 2021-03-13<br> Sunday 2021-03-14<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:
42.79 ms | 401 KiB | 8 Q