3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sdate = "2017-06-19"; $edate = "2017-08-21"; $ts1 = strtotime($sdate); $ts2 = strtotime($edate); $year1 = date('Y', $ts1); $year2 = date('Y', $ts2); $month1 = date('m', $ts1); $month2 = date('m', $ts2); $diff = (($year2 - $year1) * 12) + ($month2 - $month1); echo $diff; $Tickets = array($sdate); $time = strtotime($sdate); for($i=1; $i<=$diff; $i++) { $Tickets[] = date("Y-m-d", $time); $time = strtotime("+1 month", $time); //$sql = mysqli_query($con, "SUPPORT REQUEST QUERY"); } var_dump($Tickets);
Output for git.master, git.master_jit, rfc.property-hooks
2array(3) { [0]=> string(10) "2017-06-19" [1]=> string(10) "2017-06-19" [2]=> string(10) "2017-07-19" }

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