3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo (new DateTime())->format('Ymd His'); echo "\n"; echo (new DateTime('now + 300s'))->format('Ymd His');
based on DecSA
Output for 7.0.20 - 7.2.0
20151229 013154 Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (now + 300s) at position 4 (+): Unexpected character in /in/o5gvj:4 Stack trace: #0 /in/o5gvj(4): DateTime->__construct('now + 300s') #1 {main} thrown in /in/o5gvj on line 4
Process exited with code 255.
Output for 7.0.6
20160521 130753 Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (now + 300s) at position 4 (+): Unexpected character in /in/o5gvj:4 Stack trace: #0 /in/o5gvj(4): DateTime->__construct('now + 300s') #1 {main} thrown in /in/o5gvj on line 4
Process exited with code 255.
Output for 7.0.5
20160403 091134 Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (now + 300s) at position 4 (+): Unexpected character in /in/o5gvj:4 Stack trace: #0 /in/o5gvj(4): DateTime->__construct('now + 300s') #1 {main} thrown in /in/o5gvj on line 4
Process exited with code 255.
Output for 7.0.4
20160310 211731 Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (now + 300s) at position 4 (+): Unexpected character in /in/o5gvj:4 Stack trace: #0 /in/o5gvj(4): DateTime->__construct('now + 300s') #1 {main} thrown in /in/o5gvj on line 4
Process exited with code 255.
Output for 7.0.3
20160318 223938 Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (now + 300s) at position 4 (+): Unexpected character in /in/o5gvj:4 Stack trace: #0 /in/o5gvj(4): DateTime->__construct('now + 300s') #1 {main} thrown in /in/o5gvj on line 4
Process exited with code 255.
Output for 7.0.2
20160323 045304 Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (now + 300s) at position 4 (+): Unexpected character in /in/o5gvj:4 Stack trace: #0 /in/o5gvj(4): DateTime->__construct('now + 300s') #1 {main} thrown in /in/o5gvj on line 4
Process exited with code 255.
Output for 7.0.1
20160324 080147 Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (now + 300s) at position 4 (+): Unexpected character in /in/o5gvj:4 Stack trace: #0 /in/o5gvj(4): DateTime->__construct('now + 300s') #1 {main} thrown in /in/o5gvj on line 4
Process exited with code 255.
Output for 7.0.0
20160327 095507 Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (now + 300s) at position 4 (+): Unexpected character in /in/o5gvj:4 Stack trace: #0 /in/o5gvj(4): DateTime->__construct('now + 300s') #1 {main} thrown in /in/o5gvj on line 4
Process exited with code 255.
Output for 5.6.28
20151229 013154 Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (now + 300s) at position 4 (+): Unexpected character' in /in/o5gvj:4 Stack trace: #0 /in/o5gvj(4): DateTime->__construct('now + 300s') #1 {main} thrown in /in/o5gvj on line 4
Process exited with code 255.
Output for 5.6.21
20160502 160405 Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (now + 300s) at position 4 (+): Unexpected character' in /in/o5gvj:4 Stack trace: #0 /in/o5gvj(4): DateTime->__construct('now + 300s') #1 {main} thrown in /in/o5gvj on line 4
Process exited with code 255.
Output for 5.6.20
20160410 081322 Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (now + 300s) at position 4 (+): Unexpected character' in /in/o5gvj:4 Stack trace: #0 /in/o5gvj(4): DateTime->__construct('now + 300s') #1 {main} thrown in /in/o5gvj on line 4
Process exited with code 255.
Output for 5.6.19
20160308 052502 Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (now + 300s) at position 4 (+): Unexpected character' in /in/o5gvj:4 Stack trace: #0 /in/o5gvj(4): DateTime->__construct('now + 300s') #1 {main} thrown in /in/o5gvj on line 4
Process exited with code 255.
Output for 5.6.18
20160315 142101 Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (now + 300s) at position 4 (+): Unexpected character' in /in/o5gvj:4 Stack trace: #0 /in/o5gvj(4): DateTime->__construct('now + 300s') #1 {main} thrown in /in/o5gvj on line 4
Process exited with code 255.
Output for 5.6.17
20160320 015309 Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (now + 300s) at position 4 (+): Unexpected character' in /in/o5gvj:4 Stack trace: #0 /in/o5gvj(4): DateTime->__construct('now + 300s') #1 {main} thrown in /in/o5gvj on line 4
Process exited with code 255.
Output for 5.6.16
20160328 104439 Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (now + 300s) at position 4 (+): Unexpected character' in /in/o5gvj:4 Stack trace: #0 /in/o5gvj(4): DateTime->__construct('now + 300s') #1 {main} thrown in /in/o5gvj on line 4
Process exited with code 255.
Output for 5.6.15
20160329 113337 Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (now + 300s) at position 4 (+): Unexpected character' in /in/o5gvj:4 Stack trace: #0 /in/o5gvj(4): DateTime->__construct('now + 300s') #1 {main} thrown in /in/o5gvj on line 4
Process exited with code 255.
Output for 5.6.14
20160414 171601 Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (now + 300s) at position 4 (+): Unexpected character' in /in/o5gvj:4 Stack trace: #0 /in/o5gvj(4): DateTime->__construct('now + 300s') #1 {main} thrown in /in/o5gvj on line 4
Process exited with code 255.
Output for 5.6.13
20160415 175458 Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (now + 300s) at position 4 (+): Unexpected character' in /in/o5gvj:4 Stack trace: #0 /in/o5gvj(4): DateTime->__construct('now + 300s') #1 {main} thrown in /in/o5gvj on line 4
Process exited with code 255.
Output for 5.6.12
20160420 082403 Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (now + 300s) at position 4 (+): Unexpected character' in /in/o5gvj:4 Stack trace: #0 /in/o5gvj(4): DateTime->__construct('now + 300s') #1 {main} thrown in /in/o5gvj on line 4
Process exited with code 255.
Output for 5.6.11
20160424 144944 Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (now + 300s) at position 4 (+): Unexpected character' in /in/o5gvj:4 Stack trace: #0 /in/o5gvj(4): DateTime->__construct('now + 300s') #1 {main} thrown in /in/o5gvj on line 4
Process exited with code 255.
Output for 5.6.10
20160425 165523 Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (now + 300s) at position 4 (+): Unexpected character' in /in/o5gvj:4 Stack trace: #0 /in/o5gvj(4): DateTime->__construct('now + 300s') #1 {main} thrown in /in/o5gvj on line 4
Process exited with code 255.
Output for 5.6.9
20160427 221247 Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (now + 300s) at position 4 (+): Unexpected character' in /in/o5gvj:4 Stack trace: #0 /in/o5gvj(4): DateTime->__construct('now + 300s') #1 {main} thrown in /in/o5gvj on line 4
Process exited with code 255.
Output for 5.6.8
20160430 065223 Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (now + 300s) at position 4 (+): Unexpected character' in /in/o5gvj:4 Stack trace: #0 /in/o5gvj(4): DateTime->__construct('now + 300s') #1 {main} thrown in /in/o5gvj on line 4
Process exited with code 255.
Output for 5.5.35
20160523 013933 Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (now + 300s) at position 4 (+): Unexpected character' in /in/o5gvj:4 Stack trace: #0 /in/o5gvj(4): DateTime->__construct('now + 300s') #1 {main} thrown in /in/o5gvj on line 4
Process exited with code 255.
Output for 5.5.34
20160411 102655 Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (now + 300s) at position 4 (+): Unexpected character' in /in/o5gvj:4 Stack trace: #0 /in/o5gvj(4): DateTime->__construct('now + 300s') #1 {main} thrown in /in/o5gvj on line 4
Process exited with code 255.
Output for 5.5.33
20160309 082409 Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (now + 300s) at position 4 (+): Unexpected character' in /in/o5gvj:4 Stack trace: #0 /in/o5gvj(4): DateTime->__construct('now + 300s') #1 {main} thrown in /in/o5gvj on line 4
Process exited with code 255.
Output for 5.5.32
20160317 181657 Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (now + 300s) at position 4 (+): Unexpected character' in /in/o5gvj:4 Stack trace: #0 /in/o5gvj(4): DateTime->__construct('now + 300s') #1 {main} thrown in /in/o5gvj on line 4
Process exited with code 255.
Output for 5.5.31
20160321 050142 Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (now + 300s) at position 4 (+): Unexpected character' in /in/o5gvj:4 Stack trace: #0 /in/o5gvj(4): DateTime->__construct('now + 300s') #1 {main} thrown in /in/o5gvj on line 4
Process exited with code 255.
Output for 5.5.30
20160401 132603 Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (now + 300s) at position 4 (+): Unexpected character' in /in/o5gvj:4 Stack trace: #0 /in/o5gvj(4): DateTime->__construct('now + 300s') #1 {main} thrown in /in/o5gvj on line 4
Process exited with code 255.
Output for 5.5.29
20160417 081256 Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (now + 300s) at position 4 (+): Unexpected character' in /in/o5gvj:4 Stack trace: #0 /in/o5gvj(4): DateTime->__construct('now + 300s') #1 {main} thrown in /in/o5gvj on line 4
Process exited with code 255.
Output for 5.5.28
20160421 114217 Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (now + 300s) at position 4 (+): Unexpected character' in /in/o5gvj:4 Stack trace: #0 /in/o5gvj(4): DateTime->__construct('now + 300s') #1 {main} thrown in /in/o5gvj on line 4
Process exited with code 255.
Output for 5.5.27
20160422 132141 Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (now + 300s) at position 4 (+): Unexpected character' in /in/o5gvj:4 Stack trace: #0 /in/o5gvj(4): DateTime->__construct('now + 300s') #1 {main} thrown in /in/o5gvj on line 4
Process exited with code 255.
Output for 5.5.26
20160426 193601 Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (now + 300s) at position 4 (+): Unexpected character' in /in/o5gvj:4 Stack trace: #0 /in/o5gvj(4): DateTime->__construct('now + 300s') #1 {main} thrown in /in/o5gvj on line 4
Process exited with code 255.
Output for 5.5.25
20160429 030011 Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (now + 300s) at position 4 (+): Unexpected character' in /in/o5gvj:4 Stack trace: #0 /in/o5gvj(4): DateTime->__construct('now + 300s') #1 {main} thrown in /in/o5gvj on line 4
Process exited with code 255.
Output for 5.5.24
20160524 092530 Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (now + 300s) at position 4 (+): Unexpected character' in /in/o5gvj:4 Stack trace: #0 /in/o5gvj(4): DateTime->__construct('now + 300s') #1 {main} thrown in /in/o5gvj on line 4
Process exited with code 255.
Output for 5.4.45
20151229 013158 Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (now + 300s) at position 4 (+): Unexpected character' in /in/o5gvj:4 Stack trace: #0 /in/o5gvj(4): DateTime->__construct('now + 300s') #1 {main} thrown in /in/o5gvj on line 4
Process exited with code 255.
Output for 5.4.44
20151229 013159 Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (now + 300s) at position 4 (+): Unexpected character' in /in/o5gvj:4 Stack trace: #0 /in/o5gvj(4): DateTime->__construct('now + 300s') #1 {main} thrown in /in/o5gvj on line 4
Process exited with code 255.
Output for 5.4.43
20151229 013200 Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (now + 300s) at position 4 (+): Unexpected character' in /in/o5gvj:4 Stack trace: #0 /in/o5gvj(4): DateTime->__construct('now + 300s') #1 {main} thrown in /in/o5gvj on line 4
Process exited with code 255.
Output for 5.4.41 - 5.4.42
20151229 013201 Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (now + 300s) at position 4 (+): Unexpected character' in /in/o5gvj:4 Stack trace: #0 /in/o5gvj(4): DateTime->__construct('now + 300s') #1 {main} thrown in /in/o5gvj on line 4
Process exited with code 255.
Output for 5.4.39 - 5.4.40
20151229 013202 Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (now + 300s) at position 4 (+): Unexpected character' in /in/o5gvj:4 Stack trace: #0 /in/o5gvj(4): DateTime->__construct('now + 300s') #1 {main} thrown in /in/o5gvj on line 4
Process exited with code 255.
Output for 5.4.36 - 5.4.38
20151229 013203 Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (now + 300s) at position 4 (+): Unexpected character' in /in/o5gvj:4 Stack trace: #0 /in/o5gvj(4): DateTime->__construct('now + 300s') #1 {main} thrown in /in/o5gvj on line 4
Process exited with code 255.
Output for 5.4.34 - 5.4.35
20151229 013204 Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (now + 300s) at position 4 (+): Unexpected character' in /in/o5gvj:4 Stack trace: #0 /in/o5gvj(4): DateTime->__construct('now + 300s') #1 {main} thrown in /in/o5gvj on line 4
Process exited with code 255.
Output for 5.4.31 - 5.4.32
20151229 013205 Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (now + 300s) at position 4 (+): Unexpected character' in /in/o5gvj:4 Stack trace: #0 /in/o5gvj(4): DateTime->__construct('now + 300s') #1 {main} thrown in /in/o5gvj on line 4
Process exited with code 255.
Output for 5.4.27 - 5.4.30
20151229 013206 Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (now + 300s) at position 4 (+): Unexpected character' in /in/o5gvj:4 Stack trace: #0 /in/o5gvj(4): DateTime->__construct('now + 300s') #1 {main} thrown in /in/o5gvj on line 4
Process exited with code 255.
Output for 5.4.23 - 5.4.26
20151229 013207 Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (now + 300s) at position 4 (+): Unexpected character' in /in/o5gvj:4 Stack trace: #0 /in/o5gvj(4): DateTime->__construct('now + 300s') #1 {main} thrown in /in/o5gvj on line 4
Process exited with code 255.
Output for 5.4.21 - 5.4.22
20151229 013208 Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (now + 300s) at position 4 (+): Unexpected character' in /in/o5gvj:4 Stack trace: #0 /in/o5gvj(4): DateTime->__construct('now + 300s') #1 {main} thrown in /in/o5gvj on line 4
Process exited with code 255.
Output for 5.4.18 - 5.4.20
20151229 013209 Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (now + 300s) at position 4 (+): Unexpected character' in /in/o5gvj:4 Stack trace: #0 /in/o5gvj(4): DateTime->__construct('now + 300s') #1 {main} thrown in /in/o5gvj on line 4
Process exited with code 255.
Output for 5.4.14 - 5.4.17
20151229 013210 Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (now + 300s) at position 4 (+): Unexpected character' in /in/o5gvj:4 Stack trace: #0 /in/o5gvj(4): DateTime->__construct('now + 300s') #1 {main} thrown in /in/o5gvj on line 4
Process exited with code 255.
Output for 5.4.11 - 5.4.13
20151229 013211 Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (now + 300s) at position 4 (+): Unexpected character' in /in/o5gvj:4 Stack trace: #0 /in/o5gvj(4): DateTime->__construct('now + 300s') #1 {main} thrown in /in/o5gvj 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/o5gvj on line 2
Process exited with code 255.