3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = new DateTime(strtotime('140509')); echo $date->format('Y-m-d H:i:s'); ?>
Output for 7.0.14 - 7.2.0
Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (1402056309) at position 7 (3): Unexpected character in /in/otWpP:2 Stack trace: #0 /in/otWpP(2): DateTime->__construct('1402056309') #1 {main} thrown in /in/otWpP on line 2
Process exited with code 255.
Output for 7.0.6
Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (1462277109) at position 7 (1): Unexpected character in /in/otWpP:2 Stack trace: #0 /in/otWpP(2): DateTime->__construct('1462277109') #1 {main} thrown in /in/otWpP on line 2
Process exited with code 255.
Output for 5.6.14, 7.0.5
8709-04-02 14:59:59
Output for 7.0.4
Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (1457615109) at position 8 (0): Unexpected character in /in/otWpP:2 Stack trace: #0 /in/otWpP(2): DateTime->__construct('1457615109') #1 {main} thrown in /in/otWpP on line 2
Process exited with code 255.
Output for 7.0.3
Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (1458306309) at position 7 (3): Unexpected character in /in/otWpP:2 Stack trace: #0 /in/otWpP(2): DateTime->__construct('1458306309') #1 {main} thrown in /in/otWpP on line 2
Process exited with code 255.
Output for 7.0.2
Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (1458651909) at position 8 (0): Unexpected character in /in/otWpP:2 Stack trace: #0 /in/otWpP(2): DateTime->__construct('1458651909') #1 {main} thrown in /in/otWpP on line 2
Process exited with code 255.
Output for 7.0.1
Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (1458738309) at position 8 (0): Unexpected character in /in/otWpP:2 Stack trace: #0 /in/otWpP(2): DateTime->__construct('1458738309') #1 {main} thrown in /in/otWpP on line 2
Process exited with code 255.
Output for 7.0.0
Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (1458997509) at position 8 (0): Unexpected character in /in/otWpP:2 Stack trace: #0 /in/otWpP(2): DateTime->__construct('1458997509') #1 {main} thrown in /in/otWpP on line 2
Process exited with code 255.
Output for 5.2.0 - 5.3.28, 5.4.0 - 5.4.29, 5.6.28
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1402056309) at position 7 (3): Unexpected character' in /in/otWpP:2 Stack trace: #0 /in/otWpP(2): DateTime->__construct('1402056309') #1 {main} thrown in /in/otWpP 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 (1462190709) at position 7 (7): Unexpected character' in /in/otWpP:2 Stack trace: #0 /in/otWpP(2): DateTime->__construct('1462190709') #1 {main} thrown in /in/otWpP 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 (1460203509) at position 7 (5): Unexpected character' in /in/otWpP:2 Stack trace: #0 /in/otWpP(2): DateTime->__construct('1460203509') #1 {main} thrown in /in/otWpP 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 (1457355909) at position 7 (9): Unexpected character' in /in/otWpP:2 Stack trace: #0 /in/otWpP(2): DateTime->__construct('1457355909') #1 {main} thrown in /in/otWpP 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 (1458047109) at position 7 (1): Unexpected character' in /in/otWpP:2 Stack trace: #0 /in/otWpP(2): DateTime->__construct('1458047109') #1 {main} thrown in /in/otWpP on line 2
Process exited with code 255.
Output for 5.6.17
2709-03-19 14:58:39
Output for 5.6.16
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1459080309) at position 8 (0): Unexpected character' in /in/otWpP:2 Stack trace: #0 /in/otWpP(2): DateTime->__construct('1459080309') #1 {main} thrown in /in/otWpP 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 (1459166709) at position 7 (7): Unexpected character' in /in/otWpP:2 Stack trace: #0 /in/otWpP(2): DateTime->__construct('1459166709') #1 {main} thrown in /in/otWpP 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 (1460721909) at position 8 (0): Unexpected character' in /in/otWpP:2 Stack trace: #0 /in/otWpP(2): DateTime->__construct('1460721909') #1 {main} thrown in /in/otWpP 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 (1461067509) at position 7 (5): Unexpected character' in /in/otWpP:2 Stack trace: #0 /in/otWpP(2): DateTime->__construct('1461067509') #1 {main} thrown in /in/otWpP 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 (1461413109) at position 8 (0): Unexpected character' in /in/otWpP:2 Stack trace: #0 /in/otWpP(2): DateTime->__construct('1461413109') #1 {main} thrown in /in/otWpP 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 (1461585909) at position 8 (0): Unexpected character' in /in/otWpP:2 Stack trace: #0 /in/otWpP(2): DateTime->__construct('1461585909') #1 {main} thrown in /in/otWpP 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 (1461758709) at position 8 (0): Unexpected character' in /in/otWpP:2 Stack trace: #0 /in/otWpP(2): DateTime->__construct('1461758709') #1 {main} thrown in /in/otWpP 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 (1461931509) at position 8 (0): Unexpected character' in /in/otWpP:2 Stack trace: #0 /in/otWpP(2): DateTime->__construct('1461931509') #1 {main} thrown in /in/otWpP 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 (1463918709) at position 8 (0): Unexpected character' in /in/otWpP:2 Stack trace: #0 /in/otWpP(2): DateTime->__construct('1463918709') #1 {main} thrown in /in/otWpP 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 (1460289909) at position 7 (9): Unexpected character' in /in/otWpP:2 Stack trace: #0 /in/otWpP(2): DateTime->__construct('1460289909') #1 {main} thrown in /in/otWpP on line 2
Process exited with code 255.
Output for 5.5.33
2309-03-08 14:57:44
Output for 5.5.32
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1458219909) at position 7 (9): Unexpected character' in /in/otWpP:2 Stack trace: #0 /in/otWpP(2): DateTime->__construct('1458219909') #1 {main} thrown in /in/otWpP on line 2
Process exited with code 255.
Output for 5.5.31
9109-03-20 14:58:47
Output for 5.5.30
2309-04-01 14:59:51
Output for 5.5.29
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1460808309) at position 8 (0): Unexpected character' in /in/otWpP:2 Stack trace: #0 /in/otWpP(2): DateTime->__construct('1460808309') #1 {main} thrown in /in/otWpP 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 (1461153909) at position 7 (9): Unexpected character' in /in/otWpP:2 Stack trace: #0 /in/otWpP(2): DateTime->__construct('1461153909') #1 {main} thrown in /in/otWpP 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 (1461326709) at position 7 (7): Unexpected character' in /in/otWpP:2 Stack trace: #0 /in/otWpP(2): DateTime->__construct('1461326709') #1 {main} thrown in /in/otWpP 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 (1461672309) at position 8 (0): Unexpected character' in /in/otWpP:2 Stack trace: #0 /in/otWpP(2): DateTime->__construct('1461672309') #1 {main} thrown in /in/otWpP 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 (1461845109) at position 8 (0): Unexpected character' in /in/otWpP:2 Stack trace: #0 /in/otWpP(2): DateTime->__construct('1461845109') #1 {main} thrown in /in/otWpP 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 (1464005109) at position 7 (1): Unexpected character' in /in/otWpP:2 Stack trace: #0 /in/otWpP(2): DateTime->__construct('1464005109') #1 {main} thrown in /in/otWpP on line 2
Process exited with code 255.
Output for 5.4.39 - 5.4.45
4709-09-05 14:41:45
Output for 5.4.34 - 5.4.38
7909-03-03 14:25:38
Output for 5.3.29, 5.4.30 - 5.4.32
3509-09-12 14:10:52
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/otWpP on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: datetime in /in/otWpP on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: datetime in /in/otWpP on line 2