3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $iso = 'R2/2013-09-09T12:00:15+02:00/P1D'; $periods = new DatePeriod($iso); print_r($periods);
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Exception: DatePeriod::__construct(): Unknown or bad format (R2/2013-09-09T12:00:15+02:00/P1D) in /in/Ws3O9:4 Stack trace: #0 /in/Ws3O9(4): DatePeriod->__construct('R2/2013-09-09T1...') #1 {main} thrown in /in/Ws3O9 on line 4
Process exited with code 255.
Output for 5.3.0 - 5.6.28
Fatal error: Uncaught exception 'Exception' with message 'DatePeriod::__construct(): Unknown or bad format (R2/2013-09-09T12:00:15+02:00/P1D)' in /in/Ws3O9:4 Stack trace: #0 /in/Ws3O9(4): DatePeriod->__construct('R2/2013-09-09T1...') #1 {main} thrown in /in/Ws3O9 on line 4
Process exited with code 255.
Output for 5.0.0 - 5.2.17
Fatal error: Class 'DatePeriod' not found in /in/Ws3O9 on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: dateperiod in /in/Ws3O9 on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: dateperiod in /in/Ws3O9 on line 4