3v4l.org

run code in 300+ PHP versions simultaneously
<?php $weekModifier = 2; $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 2014-05-26<br> Tuesday 2014-05-27<br> Wednesday 2014-05-28<br> Thursday 2014-05-29<br> Friday 2014-05-30<br> Saturday 2014-05-31<br> Sunday 2014-06-01<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:
44.05 ms | 401 KiB | 8 Q