3v4l.org

run code in 300+ PHP versions simultaneously
<?php $today_dt = new DateTime(strtotime(2015-12-05)); echo $today_dt->format('Y-m-d');
Output for 8.3.0 - 8.3.4
Fatal error: Uncaught DateMalformedStringException: Failed to parse time string (913730894) at position 7 (9): Unexpected character in /in/jLnCl:2 Stack trace: #0 /in/jLnCl(2): DateTime->__construct('913730894') #1 {main} thrown in /in/jLnCl on line 2
Process exited with code 255.
Output for 8.1.0 - 8.1.27, 8.2.0 - 8.2.17
Fatal error: Uncaught Exception: Failed to parse time string (913730894) at position 7 (9): Unexpected character in /in/jLnCl:2 Stack trace: #0 /in/jLnCl(2): DateTime->__construct('913730894') #1 {main} thrown in /in/jLnCl on line 2
Process exited with code 255.
Output for 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30
Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (913730894) at position 7 (9): Unexpected character in /in/jLnCl:2 Stack trace: #0 /in/jLnCl(2): DateTime->__construct('913730894') #1 {main} thrown in /in/jLnCl on line 2
Process exited with code 255.
Output for 7.0.6
Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (895747004) at position 8 (4): Unexpected character in /in/jLnCl:2 Stack trace: #0 /in/jLnCl(2): DateTime->__construct('895747004') #1 {main} thrown in /in/jLnCl on line 2
Process exited with code 255.
Output for 7.0.5
Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (891585937) at position 8 (7): Unexpected character in /in/jLnCl:2 Stack trace: #0 /in/jLnCl(2): DateTime->__construct('891585937') #1 {main} thrown in /in/jLnCl on line 2
Process exited with code 255.
Output for 7.0.4
Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (889559275) at position 8 (5): Unexpected character in /in/jLnCl:2 Stack trace: #0 /in/jLnCl(2): DateTime->__construct('889559275') #1 {main} thrown in /in/jLnCl on line 2
Process exited with code 255.
Output for 7.0.3
Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (890255308) at position 8 (8): Unexpected character in /in/jLnCl:2 Stack trace: #0 /in/jLnCl(2): DateTime->__construct('890255308') #1 {main} thrown in /in/jLnCl on line 2
Process exited with code 255.
Output for 7.0.2
Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (890623355) at position 7 (5): Unexpected character in /in/jLnCl:2 Stack trace: #0 /in/jLnCl(2): DateTime->__construct('890623355') #1 {main} thrown in /in/jLnCl on line 2
Process exited with code 255.
Output for 7.0.1
Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (890721265) at position 7 (6): Unexpected character in /in/jLnCl:2 Stack trace: #0 /in/jLnCl(2): DateTime->__construct('890721265') #1 {main} thrown in /in/jLnCl on line 2
Process exited with code 255.
Output for 7.0.0
Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (890987299) at position 8 (9): Unexpected character in /in/jLnCl:2 Stack trace: #0 /in/jLnCl(2): DateTime->__construct('890987299') #1 {main} thrown in /in/jLnCl on line 2
Process exited with code 255.
Output for 5.6.28
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (913730894) at position 7 (9): Unexpected character' in /in/jLnCl:2 Stack trace: #0 /in/jLnCl(2): DateTime->__construct('913730894') #1 {main} thrown in /in/jLnCl on line 2
Process exited with code 255.
Output for 5.6.21
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (894116192) at position 7 (9): Unexpected character' in /in/jLnCl:2 Stack trace: #0 /in/jLnCl(2): DateTime->__construct('894116192') #1 {main} thrown in /in/jLnCl on line 2
Process exited with code 255.
Output for 5.6.20
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (892187230) at position 8 (0): Unexpected character' in /in/jLnCl:2 Stack trace: #0 /in/jLnCl(2): DateTime->__construct('892187230') #1 {main} thrown in /in/jLnCl on line 2
Process exited with code 255.
Output for 5.6.19
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (889329387) at position 7 (8): Unexpected character' in /in/jLnCl:2 Stack trace: #0 /in/jLnCl(2): DateTime->__construct('889329387') #1 {main} thrown in /in/jLnCl on line 2
Process exited with code 255.
Output for 5.6.18
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (889966136) at position 8 (6): Unexpected character' in /in/jLnCl:2 Stack trace: #0 /in/jLnCl(2): DateTime->__construct('889966136') #1 {main} thrown in /in/jLnCl on line 2
Process exited with code 255.
Output for 5.6.17
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (890353397) at position 8 (7): Unexpected character' in /in/jLnCl:2 Stack trace: #0 /in/jLnCl(2): DateTime->__construct('890353397') #1 {main} thrown in /in/jLnCl on line 2
Process exited with code 255.
Output for 5.6.16
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (891076645) at position 8 (5): Unexpected character' in /in/jLnCl:2 Stack trace: #0 /in/jLnCl(2): DateTime->__construct('891076645') #1 {main} thrown in /in/jLnCl on line 2
Process exited with code 255.
Output for 5.6.15
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (891162415) at position 8 (5): Unexpected character' in /in/jLnCl:2 Stack trace: #0 /in/jLnCl(2): DateTime->__construct('891162415') #1 {main} thrown in /in/jLnCl on line 2
Process exited with code 255.
Output for 5.6.14
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (892565275) at position 8 (5): Unexpected character' in /in/jLnCl:2 Stack trace: #0 /in/jLnCl(2): DateTime->__construct('892565275') #1 {main} thrown in /in/jLnCl on line 2
Process exited with code 255.
Output for 5.6.13
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (892654084) at position 8 (4): Unexpected character' in /in/jLnCl:2 Stack trace: #0 /in/jLnCl(2): DateTime->__construct('892654084') #1 {main} thrown in /in/jLnCl on line 2
Process exited with code 255.
Output for 5.6.12
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (893051750) at position 8 (0): Unexpected character' in /in/jLnCl:2 Stack trace: #0 /in/jLnCl(2): DateTime->__construct('893051750') #1 {main} thrown in /in/jLnCl on line 2
Process exited with code 255.
Output for 5.6.11
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (893420477) at position 7 (7): Unexpected character' in /in/jLnCl:2 Stack trace: #0 /in/jLnCl(2): DateTime->__construct('893420477') #1 {main} thrown in /in/jLnCl on line 2
Process exited with code 255.
Output for 5.6.10
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (893514366) at position 7 (6): Unexpected character' in /in/jLnCl:2 Stack trace: #0 /in/jLnCl(2): DateTime->__construct('893514366') #1 {main} thrown in /in/jLnCl on line 2
Process exited with code 255.
Output for 5.6.9
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (893705652) at position 7 (5): Unexpected character' in /in/jLnCl:2 Stack trace: #0 /in/jLnCl(2): DateTime->__construct('893705652') #1 {main} thrown in /in/jLnCl on line 2
Process exited with code 255.
Output for 5.6.8
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (893910223) at position 8 (3): Unexpected character' in /in/jLnCl:2 Stack trace: #0 /in/jLnCl(2): DateTime->__construct('893910223') #1 {main} thrown in /in/jLnCl on line 2
Process exited with code 255.
Output for 5.5.35
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (895878198) at position 8 (8): Unexpected character' in /in/jLnCl:2 Stack trace: #0 /in/jLnCl(2): DateTime->__construct('895878198') #1 {main} thrown in /in/jLnCl on line 2
Process exited with code 255.
Output for 5.5.34
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (892281555) at position 8 (5): Unexpected character' in /in/jLnCl:2 Stack trace: #0 /in/jLnCl(2): DateTime->__construct('892281555') #1 {main} thrown in /in/jLnCl on line 2
Process exited with code 255.
Output for 5.5.33
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (889426393) at position 7 (9): Unexpected character' in /in/jLnCl:2 Stack trace: #0 /in/jLnCl(2): DateTime->__construct('889426393') #1 {main} thrown in /in/jLnCl on line 2
Process exited with code 255.
Output for 5.5.32
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (890153061) at position 8 (1): Unexpected character' in /in/jLnCl:2 Stack trace: #0 /in/jLnCl(2): DateTime->__construct('890153061') #1 {main} thrown in /in/jLnCl on line 2
Process exited with code 255.
Output for 5.5.31
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (890451031) at position 8 (1): Unexpected character' in /in/jLnCl:2 Stack trace: #0 /in/jLnCl(2): DateTime->__construct('890451031') #1 {main} thrown in /in/jLnCl on line 2
Process exited with code 255.
Output for 5.5.30
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (891428338) at position 7 (3): Unexpected character' in /in/jLnCl:2 Stack trace: #0 /in/jLnCl(2): DateTime->__construct('891428338') #1 {main} thrown in /in/jLnCl on line 2
Process exited with code 255.
Output for 5.5.29
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (892791945) at position 8 (5): Unexpected character' in /in/jLnCl:2 Stack trace: #0 /in/jLnCl(2): DateTime->__construct('892791945') #1 {main} thrown in /in/jLnCl on line 2
Process exited with code 255.
Output for 5.5.28
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (893150029) at position 8 (9): Unexpected character' in /in/jLnCl:2 Stack trace: #0 /in/jLnCl(2): DateTime->__construct('893150029') #1 {main} thrown in /in/jLnCl on line 2
Process exited with code 255.
Output for 5.5.27
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (893242452) at position 8 (2): Unexpected character' in /in/jLnCl:2 Stack trace: #0 /in/jLnCl(2): DateTime->__construct('893242452') #1 {main} thrown in /in/jLnCl on line 2
Process exited with code 255.
Output for 5.5.26
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (893610336) at position 7 (3): Unexpected character' in /in/jLnCl:2 Stack trace: #0 /in/jLnCl(2): DateTime->__construct('893610336') #1 {main} thrown in /in/jLnCl on line 2
Process exited with code 255.
Output for 5.5.25
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (893809845) at position 7 (4): Unexpected character' in /in/jLnCl:2 Stack trace: #0 /in/jLnCl(2): DateTime->__construct('893809845') #1 {main} thrown in /in/jLnCl on line 2
Process exited with code 255.
Output for 5.5.24
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (895993024) at position 8 (4): Unexpected character' in /in/jLnCl:2 Stack trace: #0 /in/jLnCl(2): DateTime->__construct('895993024') #1 {main} thrown in /in/jLnCl on line 2
Process exited with code 255.

preferences:
179.04 ms | 401 KiB | 179 Q