3v4l.org

run code in 300+ PHP versions simultaneously
<?php $weekModifier = 1; $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-19<br> Tuesday 2014-05-20<br> Wednesday 2014-05-21<br> Thursday 2014-05-22<br> Friday 2014-05-23<br> Saturday 2014-05-24<br> Sunday 2014-05-25<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:
34.63 ms | 401 KiB | 8 Q