3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fechaactual = getdate(); $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 2015-09-07<br> Tuesday 2015-09-08<br> Wednesday 2015-09-09<br> Thursday 2015-09-10<br> Friday 2015-09-11<br> Saturday 2015-09-12<br> Sunday 2015-09-13<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:
65.17 ms | 401 KiB | 8 Q