3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new DateTime(); $dates = []; for($i = 0; $i <= 10; $i++) { $date->add(new DateInterval('P1D')); $dates[] = clone $date; } ?> <?php foreach($dates as $date): ?> <p style="margin: 0;"><?php echo $date->format('jS M Y'); ?></p> <?php endforeach; ?>
Output for git.master, git.master_jit, rfc.property-hooks
<p style="margin: 0;">8th May 2014</p> <p style="margin: 0;">9th May 2014</p> <p style="margin: 0;">10th May 2014</p> <p style="margin: 0;">11th May 2014</p> <p style="margin: 0;">12th May 2014</p> <p style="margin: 0;">13th May 2014</p> <p style="margin: 0;">14th May 2014</p> <p style="margin: 0;">15th May 2014</p> <p style="margin: 0;">16th May 2014</p> <p style="margin: 0;">17th May 2014</p> <p style="margin: 0;">18th May 2014</p>

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:
43.9 ms | 402 KiB | 8 Q