3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo (new DateTime())->format('Ymd His'); echo "\n"; echo (new DateTime())->add(new DateInterval('P300s'))->format('Ymd His');
based on obmsJ
Output for 7.0.0 - 7.3.1
20151229 013540 Fatal error: Uncaught Exception: DateInterval::__construct(): Unknown or bad format (P300s) in /in/28bvU:4 Stack trace: #0 /in/28bvU(4): DateInterval->__construct('P300s') #1 {main} thrown in /in/28bvU on line 4
Process exited with code 255.
Output for 5.5.0 - 5.6.38
20151229 013540 Fatal error: Uncaught exception 'Exception' with message 'DateInterval::__construct(): Unknown or bad format (P300s)' in /in/28bvU:4 Stack trace: #0 /in/28bvU(4): DateInterval->__construct('P300s') #1 {main} thrown in /in/28bvU on line 4
Process exited with code 255.
Output for 5.4.45
20151229 013543 Fatal error: Uncaught exception 'Exception' with message 'DateInterval::__construct(): Unknown or bad format (P300s)' in /in/28bvU:4 Stack trace: #0 /in/28bvU(4): DateInterval->__construct('P300s') #1 {main} thrown in /in/28bvU on line 4
Process exited with code 255.
Output for 5.4.44
20151229 013544 Fatal error: Uncaught exception 'Exception' with message 'DateInterval::__construct(): Unknown or bad format (P300s)' in /in/28bvU:4 Stack trace: #0 /in/28bvU(4): DateInterval->__construct('P300s') #1 {main} thrown in /in/28bvU on line 4
Process exited with code 255.
Output for 5.4.43
20151229 013545 Fatal error: Uncaught exception 'Exception' with message 'DateInterval::__construct(): Unknown or bad format (P300s)' in /in/28bvU:4 Stack trace: #0 /in/28bvU(4): DateInterval->__construct('P300s') #1 {main} thrown in /in/28bvU on line 4
Process exited with code 255.
Output for 5.4.41 - 5.4.42
20151229 013546 Fatal error: Uncaught exception 'Exception' with message 'DateInterval::__construct(): Unknown or bad format (P300s)' in /in/28bvU:4 Stack trace: #0 /in/28bvU(4): DateInterval->__construct('P300s') #1 {main} thrown in /in/28bvU on line 4
Process exited with code 255.
Output for 5.4.39 - 5.4.40
20151229 013547 Fatal error: Uncaught exception 'Exception' with message 'DateInterval::__construct(): Unknown or bad format (P300s)' in /in/28bvU:4 Stack trace: #0 /in/28bvU(4): DateInterval->__construct('P300s') #1 {main} thrown in /in/28bvU on line 4
Process exited with code 255.
Output for 5.4.36 - 5.4.38
20151229 013548 Fatal error: Uncaught exception 'Exception' with message 'DateInterval::__construct(): Unknown or bad format (P300s)' in /in/28bvU:4 Stack trace: #0 /in/28bvU(4): DateInterval->__construct('P300s') #1 {main} thrown in /in/28bvU on line 4
Process exited with code 255.
Output for 5.4.34 - 5.4.35
20151229 013549 Fatal error: Uncaught exception 'Exception' with message 'DateInterval::__construct(): Unknown or bad format (P300s)' in /in/28bvU:4 Stack trace: #0 /in/28bvU(4): DateInterval->__construct('P300s') #1 {main} thrown in /in/28bvU on line 4
Process exited with code 255.
Output for 5.4.31 - 5.4.32
20151229 013550 Fatal error: Uncaught exception 'Exception' with message 'DateInterval::__construct(): Unknown or bad format (P300s)' in /in/28bvU:4 Stack trace: #0 /in/28bvU(4): DateInterval->__construct('P300s') #1 {main} thrown in /in/28bvU on line 4
Process exited with code 255.
Output for 5.4.27 - 5.4.30
20151229 013551 Fatal error: Uncaught exception 'Exception' with message 'DateInterval::__construct(): Unknown or bad format (P300s)' in /in/28bvU:4 Stack trace: #0 /in/28bvU(4): DateInterval->__construct('P300s') #1 {main} thrown in /in/28bvU on line 4
Process exited with code 255.
Output for 5.4.23 - 5.4.26
20151229 013552 Fatal error: Uncaught exception 'Exception' with message 'DateInterval::__construct(): Unknown or bad format (P300s)' in /in/28bvU:4 Stack trace: #0 /in/28bvU(4): DateInterval->__construct('P300s') #1 {main} thrown in /in/28bvU on line 4
Process exited with code 255.
Output for 5.4.20 - 5.4.22
20151229 013553 Fatal error: Uncaught exception 'Exception' with message 'DateInterval::__construct(): Unknown or bad format (P300s)' in /in/28bvU:4 Stack trace: #0 /in/28bvU(4): DateInterval->__construct('P300s') #1 {main} thrown in /in/28bvU on line 4
Process exited with code 255.
Output for 5.4.17 - 5.4.19
20151229 013554 Fatal error: Uncaught exception 'Exception' with message 'DateInterval::__construct(): Unknown or bad format (P300s)' in /in/28bvU:4 Stack trace: #0 /in/28bvU(4): DateInterval->__construct('P300s') #1 {main} thrown in /in/28bvU on line 4
Process exited with code 255.
Output for 5.4.13 - 5.4.16
20151229 013555 Fatal error: Uncaught exception 'Exception' with message 'DateInterval::__construct(): Unknown or bad format (P300s)' in /in/28bvU:4 Stack trace: #0 /in/28bvU(4): DateInterval->__construct('P300s') #1 {main} thrown in /in/28bvU on line 4
Process exited with code 255.
Output for 5.4.11 - 5.4.12
20151229 013556 Fatal error: Uncaught exception 'Exception' with message 'DateInterval::__construct(): Unknown or bad format (P300s)' in /in/28bvU:4 Stack trace: #0 /in/28bvU(4): DateInterval->__construct('P300s') #1 {main} thrown in /in/28bvU on line 4
Process exited with code 255.
Output for 5.3.21 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/28bvU on line 2
Process exited with code 255.