3v4l.org

run code in 300+ PHP versions simultaneously
<?php $begin = '2014-3-19'; $end = '2014-5-19'; $begin = new DateTime( $start_date ); $end = new DateTime(date("Y-m-d",strtotime("+1 day", strtotime($end_date)))); while($begin < $end) { $period[] = $begin->format('Y-m-d'); $begin->modify('+1 day'); } var_dump($period);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $start_date in /in/Ya3pu on line 6 Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /in/Ya3pu on line 6 Warning: Undefined variable $end_date in /in/Ya3pu on line 7 Deprecated: strtotime(): Passing null to parameter #1 ($datetime) of type string is deprecated in /in/Ya3pu on line 7 Warning: Undefined variable $period in /in/Ya3pu on line 13 NULL

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