3v4l.org

run code in 300+ PHP versions simultaneously
<?php $day = 16; //date("j"); $month = 2; //date("n"); $year = 2014; //date("Y"); if ($day > 15) { $startDay = 1; $endDay = 15; } else { $day = 16; if ($month == 1) { $month = 12; $year--; } else { $month--; } $endDay = date("t", strtotime($year."-".$month."-".$day)); } $rangeStart = date("Y-m-d 00:00:00", strtotime($year."-".$month."-".$startDay)); $rangeEnd = date("Y-m-d 23:59:59", strtotime($year."-".$month."-".$endDay)); echo "$rangeStart - $rangeEnd"; ?>
Output for git.master, git.master_jit, rfc.property-hooks
2014-02-01 00:00:00 - 2014-02-15 23:59:59

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