3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $Y= new DateTime(); $X= new DateTime($Y->format('U')); echo($X->format('d/m/Y'));
Output for 7.0.14 - 7.1.0
Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (1394451990) at position 8 (9): Unexpected character in /in/uh6Ja:3 Stack trace: #0 /in/uh6Ja(3): DateTime->__construct('1394451990') #1 {main} thrown in /in/uh6Ja on line 3
Process exited with code 255.
Output for 7.0.6
Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (1462234327) at position 7 (3): Unexpected character in /in/uh6Ja:3 Stack trace: #0 /in/uh6Ja(3): DateTime->__construct('1462234327') #1 {main} thrown in /in/uh6Ja on line 3
Process exited with code 255.
Output for 7.0.5
02/04/3640
Output for 7.0.4
10/03/7736
Output for 7.0.3
Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (1458259669) at position 7 (6): Unexpected character in /in/uh6Ja:3 Stack trace: #0 /in/uh6Ja(3): DateTime->__construct('1458259669') #1 {main} thrown in /in/uh6Ja on line 3
Process exited with code 255.
Output for 7.0.2
21/03/6976
Output for 7.0.1
Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (1458730479) at position 8 (7): Unexpected character in /in/uh6Ja:3 Stack trace: #0 /in/uh6Ja(3): DateTime->__construct('1458730479') #1 {main} thrown in /in/uh6Ja on line 3
Process exited with code 255.
Output for 7.0.0
Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (1458998762) at position 8 (6): Unexpected character in /in/uh6Ja:3 Stack trace: #0 /in/uh6Ja(3): DateTime->__construct('1458998762') #1 {main} thrown in /in/uh6Ja on line 3
Process exited with code 255.
Output for hhvm-3.12.0
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1457670538) at position 8 (3): Unexpected character' in /in/uh6Ja:3 Stack trace: #0 /in/uh6Ja(3): DateTime->__construct() #1 {main}
Process exited with code 255.
Output for hhvm-3.10.0
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1459272118) at position 7 (1): Unexpected character' in /in/uh6Ja:3 Stack trace: #0 /in/uh6Ja(3): DateTime->__construct() #1 {main}
Process exited with code 255.
Output for 5.6.28
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1394451990) at position 8 (9): Unexpected character' in /in/uh6Ja:3 Stack trace: #0 /in/uh6Ja(3): DateTime->__construct('1394451990') #1 {main} thrown in /in/uh6Ja on line 3
Process exited with code 255.
Output for 5.6.21
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1462130066) at position 7 (0): Unexpected character' in /in/uh6Ja:3 Stack trace: #0 /in/uh6Ja(3): DateTime->__construct('1462130066') #1 {main} thrown in /in/uh6Ja on line 3
Process exited with code 255.
Output for 5.6.20
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1460191329) at position 7 (3): Unexpected character' in /in/uh6Ja:3 Stack trace: #0 /in/uh6Ja(3): DateTime->__construct('1460191329') #1 {main} thrown in /in/uh6Ja on line 3
Process exited with code 255.
Output for 5.6.19
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1457302256) at position 7 (2): Unexpected character' in /in/uh6Ja:3 Stack trace: #0 /in/uh6Ja(3): DateTime->__construct('1457302256') #1 {main} thrown in /in/uh6Ja on line 3
Process exited with code 255.
Output for 5.6.18
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1457949027) at position 8 (2): Unexpected character' in /in/uh6Ja:3 Stack trace: #0 /in/uh6Ja(3): DateTime->__construct('1457949027') #1 {main} thrown in /in/uh6Ja on line 3
Process exited with code 255.
Output for 5.6.17
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1458362207) at position 7 (2): Unexpected character' in /in/uh6Ja:3 Stack trace: #0 /in/uh6Ja(3): DateTime->__construct('1458362207') #1 {main} thrown in /in/uh6Ja on line 3
Process exited with code 255.
Output for 5.6.16
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1459087865) at position 7 (8): Unexpected character' in /in/uh6Ja:3 Stack trace: #0 /in/uh6Ja(3): DateTime->__construct('1459087865') #1 {main} thrown in /in/uh6Ja on line 3
Process exited with code 255.
Output for 5.6.15
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1459177481) at position 7 (4): Unexpected character' in /in/uh6Ja:3 Stack trace: #0 /in/uh6Ja(3): DateTime->__construct('1459177481') #1 {main} thrown in /in/uh6Ja on line 3
Process exited with code 255.
Output for 5.6.14
01/04/2590
Output for 5.6.13
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1460669466) at position 8 (6): Unexpected character' in /in/uh6Ja:3 Stack trace: #0 /in/uh6Ja(3): DateTime->__construct('1460669466') #1 {main} thrown in /in/uh6Ja on line 3
Process exited with code 255.
Output for 5.6.12
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1461062352) at position 8 (5): Unexpected character' in /in/uh6Ja:3 Stack trace: #0 /in/uh6Ja(3): DateTime->__construct('1461062352') #1 {main} thrown in /in/uh6Ja on line 3
Process exited with code 255.
Output for 5.6.11
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1461347728) at position 7 (7): Unexpected character' in /in/uh6Ja:3 Stack trace: #0 /in/uh6Ja(3): DateTime->__construct('1461347728') #1 {main} thrown in /in/uh6Ja on line 3
Process exited with code 255.
Output for 5.6.10
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1461526528) at position 8 (2): Unexpected character' in /in/uh6Ja:3 Stack trace: #0 /in/uh6Ja(3): DateTime->__construct('1461526528') #1 {main} thrown in /in/uh6Ja on line 3
Process exited with code 255.
Output for 5.6.9
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1461717876) at position 8 (7): Unexpected character' in /in/uh6Ja:3 Stack trace: #0 /in/uh6Ja(3): DateTime->__construct('1461717876') #1 {main} thrown in /in/uh6Ja on line 3
Process exited with code 255.
Output for 5.6.8
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1461917990) at position 8 (9): Unexpected character' in /in/uh6Ja:3 Stack trace: #0 /in/uh6Ja(3): DateTime->__construct('1461917990') #1 {main} thrown in /in/uh6Ja on line 3
Process exited with code 255.
Output for 5.6.7
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1464116409) at position 7 (4): Unexpected character' in /in/uh6Ja:3 Stack trace: #0 /in/uh6Ja(3): DateTime->__construct('1464116409') #1 {main} thrown in /in/uh6Ja on line 3
Process exited with code 255.
Output for 5.5.35
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1463870082) at position 8 (8): Unexpected character' in /in/uh6Ja:3 Stack trace: #0 /in/uh6Ja(3): DateTime->__construct('1463870082') #1 {main} thrown in /in/uh6Ja on line 3
Process exited with code 255.
Output for 5.5.34
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1460299069) at position 7 (0): Unexpected character' in /in/uh6Ja:3 Stack trace: #0 /in/uh6Ja(3): DateTime->__construct('1460299069') #1 {main} thrown in /in/uh6Ja on line 3
Process exited with code 255.
Output for 5.5.33
08/03/4185
Output for 5.5.32
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1458145822) at position 7 (8): Unexpected character' in /in/uh6Ja:3 Stack trace: #0 /in/uh6Ja(3): DateTime->__construct('1458145822') #1 {main} thrown in /in/uh6Ja on line 3
Process exited with code 255.
Output for 5.5.31
20/03/8986
Output for 5.5.30
31/03/3966
Output for 5.5.29
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1460806665) at position 8 (6): Unexpected character' in /in/uh6Ja:3 Stack trace: #0 /in/uh6Ja(3): DateTime->__construct('1460806665') #1 {main} thrown in /in/uh6Ja on line 3
Process exited with code 255.
Output for 5.5.28
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1461160416) at position 7 (4): Unexpected character' in /in/uh6Ja:3 Stack trace: #0 /in/uh6Ja(3): DateTime->__construct('1461160416') #1 {main} thrown in /in/uh6Ja on line 3
Process exited with code 255.
Output for 5.5.27
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1461256027) at position 7 (0): Unexpected character' in /in/uh6Ja:3 Stack trace: #0 /in/uh6Ja(3): DateTime->__construct('1461256027') #1 {main} thrown in /in/uh6Ja on line 3
Process exited with code 255.
Output for 5.5.26
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1461621171) at position 8 (7): Unexpected character' in /in/uh6Ja:3 Stack trace: #0 /in/uh6Ja(3): DateTime->__construct('1461621171') #1 {main} thrown in /in/uh6Ja on line 3
Process exited with code 255.
Output for 5.5.25
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1461816062) at position 8 (6): Unexpected character' in /in/uh6Ja:3 Stack trace: #0 /in/uh6Ja(3): DateTime->__construct('1461816062') #1 {main} thrown in /in/uh6Ja on line 3
Process exited with code 255.
Output for 5.5.24
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1462015941) at position 7 (9): Unexpected character' in /in/uh6Ja:3 Stack trace: #0 /in/uh6Ja(3): DateTime->__construct('1462015941') #1 {main} thrown in /in/uh6Ja on line 3
Process exited with code 255.
Output for 5.4.45
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1442196386) at position 7 (3): Unexpected character' in /in/uh6Ja:3 Stack trace: #0 /in/uh6Ja(3): DateTime->__construct('1442196386') #1 {main} thrown in /in/uh6Ja on line 3
Process exited with code 255.
Output for 5.4.44
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1442196383) at position 7 (3): Unexpected character' in /in/uh6Ja:3 Stack trace: #0 /in/uh6Ja(3): DateTime->__construct('1442196383') #1 {main} thrown in /in/uh6Ja on line 3
Process exited with code 255.
Output for 5.4.43
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1442196379) at position 7 (3): Unexpected character' in /in/uh6Ja:3 Stack trace: #0 /in/uh6Ja(3): DateTime->__construct('1442196379') #1 {main} thrown in /in/uh6Ja on line 3
Process exited with code 255.
Output for 5.4.42
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1442196378) at position 7 (3): Unexpected character' in /in/uh6Ja:3 Stack trace: #0 /in/uh6Ja(3): DateTime->__construct('1442196378') #1 {main} thrown in /in/uh6Ja on line 3
Process exited with code 255.
Output for 5.4.41
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1442196376) at position 7 (3): Unexpected character' in /in/uh6Ja:3 Stack trace: #0 /in/uh6Ja(3): DateTime->__construct('1442196376') #1 {main} thrown in /in/uh6Ja on line 3
Process exited with code 255.
Output for 5.4.40
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1431268983) at position 7 (9): Unexpected character' in /in/uh6Ja:3 Stack trace: #0 /in/uh6Ja(3): DateTime->__construct('1431268983') #1 {main} thrown in /in/uh6Ja on line 3
Process exited with code 255.
Output for 5.4.39
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1431268982) at position 7 (9): Unexpected character' in /in/uh6Ja:3 Stack trace: #0 /in/uh6Ja(3): DateTime->__construct('1431268982') #1 {main} thrown in /in/uh6Ja on line 3
Process exited with code 255.
Output for 5.4.38
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1425299640) at position 7 (6): Unexpected character' in /in/uh6Ja:3 Stack trace: #0 /in/uh6Ja(3): DateTime->__construct('1425299640') #1 {main} thrown in /in/uh6Ja on line 3
Process exited with code 255.
Output for 5.4.36 - 5.4.37
08/02/3917
Output for 5.4.34 - 5.4.35
08/02/3916
Output for 5.4.32
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1410071903) at position 8 (0): Unexpected character' in /in/uh6Ja:3 Stack trace: #0 /in/uh6Ja(3): DateTime->__construct('1410071903') #1 {main} thrown in /in/uh6Ja on line 3
Process exited with code 255.
Output for 5.4.31
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1410071900) at position 8 (0): Unexpected character' in /in/uh6Ja:3 Stack trace: #0 /in/uh6Ja(3): DateTime->__construct('1410071900') #1 {main} thrown in /in/uh6Ja on line 3
Process exited with code 255.
Output for 5.3.29, 5.4.29 - 5.4.30
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1410071896) at position 8 (9): Unexpected character' in /in/uh6Ja:3 Stack trace: #0 /in/uh6Ja(3): DateTime->__construct('1410071896') #1 {main} thrown in /in/uh6Ja on line 3
Process exited with code 255.
Output for 5.4.28
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1410071895) at position 8 (9): Unexpected character' in /in/uh6Ja:3 Stack trace: #0 /in/uh6Ja(3): DateTime->__construct('1410071895') #1 {main} thrown in /in/uh6Ja on line 3
Process exited with code 255.
Output for 5.4.27
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1410071901) at position 8 (0): Unexpected character' in /in/uh6Ja:3 Stack trace: #0 /in/uh6Ja(3): DateTime->__construct('1410071901') #1 {main} thrown in /in/uh6Ja on line 3
Process exited with code 255.
Output for 5.4.16 - 5.4.26
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1394451991) at position 8 (9): Unexpected character' in /in/uh6Ja:3 Stack trace: #0 /in/uh6Ja(3): DateTime->__construct('1394451991') #1 {main} thrown in /in/uh6Ja on line 3
Process exited with code 255.
Output for 5.3.23 - 5.3.28, 5.4.0 - 5.4.15
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1394451992) at position 8 (9): Unexpected character' in /in/uh6Ja:3 Stack trace: #0 /in/uh6Ja(3): DateTime->__construct('1394451992') #1 {main} thrown in /in/uh6Ja on line 3
Process exited with code 255.
Output for 5.3.2 - 5.3.22
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1394451993) at position 8 (9): Unexpected character' in /in/uh6Ja:3 Stack trace: #0 /in/uh6Ja(3): DateTime->__construct('1394451993') #1 {main} thrown in /in/uh6Ja on line 3
Process exited with code 255.
Output for 5.2.0 - 5.3.1
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1394451994) at position 8 (9): Unexpected character' in /in/uh6Ja:3 Stack trace: #0 /in/uh6Ja(3): DateTime->__construct('1394451994') #1 {main} thrown in /in/uh6Ja on line 3
Process exited with code 255.
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/uh6Ja 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/uh6Ja 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/uh6Ja on line 2