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")); } print_R($arr);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => 22 [1] => 23 [2] => 24 [3] => 25 [4] => 26 [5] => 27 [6] => 28 [7] => 29 [8] => 30 [9] => 01 [10] => 02 [11] => 03 [12] => 04 [13] => 05 [14] => 06 [15] => 07 [16] => 08 [17] => 09 [18] => 10 [19] => 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:
122.21 ms | 406 KiB | 5 Q