3v4l.org

run code in 300+ PHP versions simultaneously
<?php $next = strtotime("+1 month"); $date = new DateTime($next); echo $date->format(DateTime::RFC2822);
Output for 8.3.0 - 8.3.6
Fatal error: Uncaught DateMalformedStringException: Failed to parse time string (1448213477) at position 7 (4): Unexpected character in /in/YeoR3:4 Stack trace: #0 /in/YeoR3(4): DateTime->__construct('1448213477') #1 {main} thrown in /in/YeoR3 on line 4
Process exited with code 255.
Output for 8.1.0 - 8.1.28, 8.2.0 - 8.2.18
Fatal error: Uncaught Exception: Failed to parse time string (1448213477) at position 7 (4): Unexpected character in /in/YeoR3:4 Stack trace: #0 /in/YeoR3(4): DateTime->__construct('1448213477') #1 {main} thrown in /in/YeoR3 on line 4
Process exited with code 255.
Output for 7.0.20, 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.33, 8.0.0 - 8.0.12, 8.0.14 - 8.0.30
Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (1448213477) at position 7 (4): Unexpected character in /in/YeoR3:4 Stack trace: #0 /in/YeoR3(4): DateTime->__construct('1448213477') #1 {main} thrown in /in/YeoR3 on line 4
Process exited with code 255.
Output for 7.3.32 - 7.3.33, 8.0.13
Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (1448209877) at position 7 (8): Unexpected character in /in/YeoR3:4 Stack trace: #0 /in/YeoR3(4): DateTime->__construct('1448209877') #1 {main} thrown in /in/YeoR3 on line 4
Process exited with code 255.
Output for 7.0.6
Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (1464910146) at position 8 (4): Unexpected character in /in/YeoR3:4 Stack trace: #0 /in/YeoR3(4): DateTime->__construct('1464910146') #1 {main} thrown in /in/YeoR3 on line 4
Process exited with code 255.
Output for 7.0.5
Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (1462193293) at position 7 (2): Unexpected character in /in/YeoR3:4 Stack trace: #0 /in/YeoR3(4): DateTime->__construct('1462193293') #1 {main} thrown in /in/YeoR3 on line 4
Process exited with code 255.
Output for 7.0.4
Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (1460238653) at position 7 (6): Unexpected character in /in/YeoR3:4 Stack trace: #0 /in/YeoR3(4): DateTime->__construct('1460238653') #1 {main} thrown in /in/YeoR3 on line 4
Process exited with code 255.
Output for 7.0.3
Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (1460931502) at position 8 (0): Unexpected character in /in/YeoR3:4 Stack trace: #0 /in/YeoR3(4): DateTime->__construct('1460931502') #1 {main} thrown in /in/YeoR3 on line 4
Process exited with code 255.
Output for 7.0.2
Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (1461229037) at position 7 (0): Unexpected character in /in/YeoR3:4 Stack trace: #0 /in/YeoR3(4): DateTime->__construct('1461229037') #1 {main} thrown in /in/YeoR3 on line 4
Process exited with code 255.
Output for 7.0.1
Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (1461402512) at position 8 (1): Unexpected character in /in/YeoR3:4 Stack trace: #0 /in/YeoR3(4): DateTime->__construct('1461402512') #1 {main} thrown in /in/YeoR3 on line 4
Process exited with code 255.
Output for 7.0.0
Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (1461670599) at position 8 (9): Unexpected character in /in/YeoR3:4 Stack trace: #0 /in/YeoR3(4): DateTime->__construct('1461670599') #1 {main} thrown in /in/YeoR3 on line 4
Process exited with code 255.
Output for 5.6.28
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1448213477) at position 7 (4): Unexpected character' in /in/YeoR3:4 Stack trace: #0 /in/YeoR3(4): DateTime->__construct('1448213477') #1 {main} thrown in /in/YeoR3 on line 4
Process exited with code 255.
Output for 5.6.21
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1464806005) at position 8 (0): Unexpected character' in /in/YeoR3:4 Stack trace: #0 /in/YeoR3(4): DateTime->__construct('1464806005') #1 {main} thrown in /in/YeoR3 on line 4
Process exited with code 255.
Output for 5.6.20
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1462780989) at position 8 (8): Unexpected character' in /in/YeoR3:4 Stack trace: #0 /in/YeoR3(4): DateTime->__construct('1462780989') #1 {main} thrown in /in/YeoR3 on line 4
Process exited with code 255.
Output for 5.6.19
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1459972017) at position 8 (1): Unexpected character' in /in/YeoR3:4 Stack trace: #0 /in/YeoR3(4): DateTime->__construct('1459972017') #1 {main} thrown in /in/YeoR3 on line 4
Process exited with code 255.
Output for 5.6.18
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1460620038) at position 8 (3): Unexpected character' in /in/YeoR3:4 Stack trace: #0 /in/YeoR3(4): DateTime->__construct('1460620038') #1 {main} thrown in /in/YeoR3 on line 4
Process exited with code 255.
Output for 5.6.17
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1461034260) at position 7 (2): Unexpected character' in /in/YeoR3:4 Stack trace: #0 /in/YeoR3(4): DateTime->__construct('1461034260') #1 {main} thrown in /in/YeoR3 on line 4
Process exited with code 255.
Output for 5.6.16
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1461763683) at position 8 (8): Unexpected character' in /in/YeoR3:4 Stack trace: #0 /in/YeoR3(4): DateTime->__construct('1461763683') #1 {main} thrown in /in/YeoR3 on line 4
Process exited with code 255.
Output for 5.6.15
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1461853360) at position 8 (6): Unexpected character' in /in/YeoR3:4 Stack trace: #0 /in/YeoR3(4): DateTime->__construct('1461853360') #1 {main} thrown in /in/YeoR3 on line 4
Process exited with code 255.
Output for 5.6.14
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1462122226) at position 8 (2): Unexpected character' in /in/YeoR3:4 Stack trace: #0 /in/YeoR3(4): DateTime->__construct('1462122226') #1 {main} thrown in /in/YeoR3 on line 4
Process exited with code 255.
Output for 5.6.13
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1463259058) at position 7 (0): Unexpected character' in /in/YeoR3:4 Stack trace: #0 /in/YeoR3(4): DateTime->__construct('1463259058') #1 {main} thrown in /in/YeoR3 on line 4
Process exited with code 255.
Output for 5.6.12
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1463651819) at position 8 (1): Unexpected character' in /in/YeoR3:4 Stack trace: #0 /in/YeoR3(4): DateTime->__construct('1463651819') #1 {main} thrown in /in/YeoR3 on line 4
Process exited with code 255.
Output for 5.6.11
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1463937248) at position 8 (4): Unexpected character' in /in/YeoR3:4 Stack trace: #0 /in/YeoR3(4): DateTime->__construct('1463937248') #1 {main} thrown in /in/YeoR3 on line 4
Process exited with code 255.
Output for 5.6.10
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1464115999) at position 7 (9): Unexpected character' in /in/YeoR3:4 Stack trace: #0 /in/YeoR3(4): DateTime->__construct('1464115999') #1 {main} thrown in /in/YeoR3 on line 4
Process exited with code 255.
Output for 5.6.9
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1464307174) at position 7 (1): Unexpected character' in /in/YeoR3:4 Stack trace: #0 /in/YeoR3(4): DateTime->__construct('1464307174') #1 {main} thrown in /in/YeoR3 on line 4
Process exited with code 255.
Output for 5.6.8
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1464507212) at position 8 (1): Unexpected character' in /in/YeoR3:4 Stack trace: #0 /in/YeoR3(4): DateTime->__construct('1464507212') #1 {main} thrown in /in/YeoR3 on line 4
Process exited with code 255.
Output for 5.6.7
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1466790655) at position 8 (5): Unexpected character' in /in/YeoR3:4 Stack trace: #0 /in/YeoR3(4): DateTime->__construct('1466790655') #1 {main} thrown in /in/YeoR3 on line 4
Process exited with code 255.
Output for 5.5.35
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1466545641) at position 8 (4): Unexpected character' in /in/YeoR3:4 Stack trace: #0 /in/YeoR3(4): DateTime->__construct('1466545641') #1 {main} thrown in /in/YeoR3 on line 4
Process exited with code 255.
Output for 5.5.34
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1462888627) at position 8 (2): Unexpected character' in /in/YeoR3:4 Stack trace: #0 /in/YeoR3(4): DateTime->__construct('1462888627') #1 {main} thrown in /in/YeoR3 on line 4
Process exited with code 255.
Output for 5.5.33
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1460106335) at position 7 (3): Unexpected character' in /in/YeoR3:4 Stack trace: #0 /in/YeoR3(4): DateTime->__construct('1460106335') #1 {main} thrown in /in/YeoR3 on line 4
Process exited with code 255.
Output for 5.5.32
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1460743392) at position 8 (9): Unexpected character' in /in/YeoR3:4 Stack trace: #0 /in/YeoR3(4): DateTime->__construct('1460743392') #1 {main} thrown in /in/YeoR3 on line 4
Process exited with code 255.
Output for 5.5.31
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1461131074) at position 7 (0): Unexpected character' in /in/YeoR3:4 Stack trace: #0 /in/YeoR3(4): DateTime->__construct('1461131074') #1 {main} thrown in /in/YeoR3 on line 4
Process exited with code 255.
Output for 5.5.30
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1462119940) at position 7 (9): Unexpected character' in /in/YeoR3:4 Stack trace: #0 /in/YeoR3(4): DateTime->__construct('1462119940') #1 {main} thrown in /in/YeoR3 on line 4
Process exited with code 255.
Output for 5.5.29
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1463396147) at position 8 (4): Unexpected character' in /in/YeoR3:4 Stack trace: #0 /in/YeoR3(4): DateTime->__construct('1463396147') #1 {main} thrown in /in/YeoR3 on line 4
Process exited with code 255.
Output for 5.5.28
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1463749742) at position 8 (4): Unexpected character' in /in/YeoR3:4 Stack trace: #0 /in/YeoR3(4): DateTime->__construct('1463749742') #1 {main} thrown in /in/YeoR3 on line 4
Process exited with code 255.
Output for 5.5.27
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1463845538) at position 8 (3): Unexpected character' in /in/YeoR3:4 Stack trace: #0 /in/YeoR3(4): DateTime->__construct('1463845538') #1 {main} thrown in /in/YeoR3 on line 4
Process exited with code 255.
Output for 5.5.26
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1464210591) at position 7 (5): Unexpected character' in /in/YeoR3:4 Stack trace: #0 /in/YeoR3(4): DateTime->__construct('1464210591') #1 {main} thrown in /in/YeoR3 on line 4
Process exited with code 255.
Output for 5.5.25
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1464405408) at position 8 (0): Unexpected character' in /in/YeoR3:4 Stack trace: #0 /in/YeoR3(4): DateTime->__construct('1464405408') #1 {main} thrown in /in/YeoR3 on line 4
Process exited with code 255.
Output for 5.5.24
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1464605561) at position 8 (6): Unexpected character' in /in/YeoR3:4 Stack trace: #0 /in/YeoR3(4): DateTime->__construct('1464605561') #1 {main} thrown in /in/YeoR3 on line 4
Process exited with code 255.
Output for 5.4.43 - 5.4.45
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1448213487) at position 7 (4): Unexpected character' in /in/YeoR3:4 Stack trace: #0 /in/YeoR3(4): DateTime->__construct('1448213487') #1 {main} thrown in /in/YeoR3 on line 4
Process exited with code 255.
Output for 5.4.35 - 5.4.42
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1448213488) at position 7 (4): Unexpected character' in /in/YeoR3:4 Stack trace: #0 /in/YeoR3(4): DateTime->__construct('1448213488') #1 {main} thrown in /in/YeoR3 on line 4
Process exited with code 255.
Output for 5.4.27 - 5.4.34
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1448213489) at position 7 (4): Unexpected character' in /in/YeoR3:4 Stack trace: #0 /in/YeoR3(4): DateTime->__construct('1448213489') #1 {main} thrown in /in/YeoR3 on line 4
Process exited with code 255.
Output for 5.4.20 - 5.4.26
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1448213490) at position 7 (4): Unexpected character' in /in/YeoR3:4 Stack trace: #0 /in/YeoR3(4): DateTime->__construct('1448213490') #1 {main} thrown in /in/YeoR3 on line 4
Process exited with code 255.
Output for 5.4.13 - 5.4.19
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1448213491) at position 7 (4): Unexpected character' in /in/YeoR3:4 Stack trace: #0 /in/YeoR3(4): DateTime->__construct('1448213491') #1 {main} thrown in /in/YeoR3 on line 4
Process exited with code 255.
Output for 5.4.6 - 5.4.12
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1448213492) at position 7 (4): Unexpected character' in /in/YeoR3:4 Stack trace: #0 /in/YeoR3(4): DateTime->__construct('1448213492') #1 {main} thrown in /in/YeoR3 on line 4
Process exited with code 255.
Output for 5.4.0 - 5.4.5
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1448213493) at position 7 (4): Unexpected character' in /in/YeoR3:4 Stack trace: #0 /in/YeoR3(4): DateTime->__construct('1448213493') #1 {main} thrown in /in/YeoR3 on line 4
Process exited with code 255.

preferences:
186.93 ms | 402 KiB | 244 Q