3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mesi=array(); $start = new DateTime('2014-12-01'); $start->modify('first day of this month'); $end = new DateTime('2015-05-30'); $end->modify('first day of this month'); $interval = DateInterval::createFromDateString('1 month'); $period = new DatePeriod($start, $interval, $end); foreach ($period as $dt) { $mesi[]= $dt->format("mY") . PHP_EOL; } var_dump($mesi);die();
Output for git.master, git.master_jit, rfc.property-hooks
array(5) { [0]=> string(7) "122014 " [1]=> string(7) "012015 " [2]=> string(7) "022015 " [3]=> string(7) "032015 " [4]=> string(7) "042015 " }

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