3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start_date = "2016-06-22"; $end_date = "2016-07-11"; $diff = strtotime($end_date) - strtotime($start_date); $diff_date = date("d",$diff); $arr = []; for($i = 0; $i < $diff_date; $i++){ $arr[] = date('d',strtotime("$start_date +$i days")); } echo implode(',',$arr);
Output for git.master, git.master_jit, rfc.property-hooks
22,23,24,25,26,27,28,29,30,01,02,03,04,05,06,07,08,09,10,11

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:
63.72 ms | 405 KiB | 5 Q