3v4l.org

run code in 300+ PHP versions simultaneously
<?php $begin = new DateTime( '29/08/2013' ); $end = new DateTime( '03/09/2013' ); $end = $end->modify( '+1 day' ); $interval = new DateInterval('P1D'); $daterange = new DatePeriod($begin, $interval ,$end); foreach($daterange as $date){ echo $date->format("Y-m-d") . "<br>"; }
Output for git.master, git.master_jit
Fatal error: Uncaught Exception: Failed to parse time string (29/08/2013) at position 0 (2): Unexpected character in /in/PUiYS:3 Stack trace: #0 /in/PUiYS(3): DateTime->__construct('29/08/2013') #1 {main} thrown in /in/PUiYS on line 3
Process exited with code 255.
Output for rfc.property-hooks
Fatal error: Uncaught DateMalformedStringException: Failed to parse time string (29/08/2013) at position 0 (2): Unexpected character in /in/PUiYS:3 Stack trace: #0 /in/PUiYS(3): DateTime->__construct('29/08/2013') #1 {main} thrown in /in/PUiYS on line 3
Process exited with code 255.

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.44 ms | 401 KiB | 8 Q