3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach (range(0,8) as $days) { $a1 = new DateTime('2016-03-07 18:02:40'); $a1->modify("+$days days"); $a1->modify('next week'); echo $days . PHP_EOL; var_dump($a1->format('d/m/Y')); }
Output for git.master, git.master_jit, rfc.property-hooks
0 string(10) "14/03/2016" 1 string(10) "14/03/2016" 2 string(10) "14/03/2016" 3 string(10) "14/03/2016" 4 string(10) "14/03/2016" 5 string(10) "14/03/2016" 6 string(10) "14/03/2016" 7 string(10) "21/03/2016" 8 string(10) "21/03/2016"

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:
51.16 ms | 401 KiB | 8 Q