3v4l.org

run code in 300+ PHP versions simultaneously
<?php $iso = 'R2/2013-09-09T12:00:15Z/P1D'; $periods = new DatePeriod($iso); var_dump( is_object($periods) ); $iso = 'R2/2013-09-09T12:00:15+02:00/P1D'; $periods = new DatePeriod($iso); var_dump( is_object($periods) );
Output for git.master, git.master_jit
bool(true) Fatal error: Uncaught Exception: Unknown or bad format (R2/2013-09-09T12:00:15+02:00/P1D) in /in/BPNBg:7 Stack trace: #0 /in/BPNBg(7): DatePeriod->__construct('R2/2013-09-09T1...') #1 {main} thrown in /in/BPNBg on line 7
Process exited with code 255.
Output for rfc.property-hooks
bool(true) Fatal error: Uncaught DateMalformedPeriodStringException: Unknown or bad format (R2/2013-09-09T12:00:15+02:00/P1D) in /in/BPNBg:7 Stack trace: #0 /in/BPNBg(7): DatePeriod->__construct('R2/2013-09-09T1...') #1 {main} thrown in /in/BPNBg on line 7
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:
43.98 ms | 401 KiB | 8 Q