3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = strtotime('20016-02-05'); $end = strtotime('2016-04-05'); $start_m = new DateTime($_GET["fecha1"]); $end_m = new DateTime($_GET["fecha2"]); $start_m->modify('first day of this month'); $end_m->modify('first day of next month'); $interval = DateInterval::createFromDateString('1 month'); $period = new DatePeriod($start_m, $interval, $end_m); print_r($date_range_m);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined array key "fecha1" in /in/imXRG on line 5 Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /in/imXRG on line 5 Warning: Undefined array key "fecha2" in /in/imXRG on line 6 Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /in/imXRG on line 6 Warning: Undefined variable $date_range_m in /in/imXRG on line 13

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:
44.36 ms | 402 KiB | 8 Q