3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(new DateTime(strtotime('today midnight')));
based on avkEm
Output for 7.0.20 - 7.2.0
Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (1447282800) at position 7 (8): Unexpected character in /in/bXL8R:3 Stack trace: #0 /in/bXL8R(3): DateTime->__construct('1447282800') #1 {main} thrown in /in/bXL8R on line 3
Process exited with code 255.
Output for 7.0.6
Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (1462226400) at position 7 (4): Unexpected character in /in/bXL8R:3 Stack trace: #0 /in/bXL8R(3): DateTime->__construct('1462226400') #1 {main} thrown in /in/bXL8R on line 3
Process exited with code 255.
Output for 7.0.5
Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (1459634400) at position 8 (0): Unexpected character in /in/bXL8R:3 Stack trace: #0 /in/bXL8R(3): DateTime->__construct('1459634400') #1 {main} thrown in /in/bXL8R on line 3
Process exited with code 255.
Output for 7.0.4
object(DateTime)#1 (3) { ["date"]=> string(26) "4400-03-10 14:57:56.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.0.3
Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (1458255600) at position 7 (6): Unexpected character in /in/bXL8R:3 Stack trace: #0 /in/bXL8R(3): DateTime->__construct('1458255600') #1 {main} thrown in /in/bXL8R on line 3
Process exited with code 255.
Output for 7.0.2
Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (1458687600) at position 8 (0): Unexpected character in /in/bXL8R:3 Stack trace: #0 /in/bXL8R(3): DateTime->__construct('1458687600') #1 {main} thrown in /in/bXL8R on line 3
Process exited with code 255.
Output for 7.0.1
Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (1458774000) at position 8 (0): Unexpected character in /in/bXL8R:3 Stack trace: #0 /in/bXL8R(3): DateTime->__construct('1458774000') #1 {main} thrown in /in/bXL8R on line 3
Process exited with code 255.
Output for 7.0.0
Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (1459033200) at position 7 (2): Unexpected character in /in/bXL8R:3 Stack trace: #0 /in/bXL8R(3): DateTime->__construct('1459033200') #1 {main} thrown in /in/bXL8R on line 3
Process exited with code 255.
Output for 5.3.19 - 5.4.45, 5.6.28
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1447282800) at position 7 (8): Unexpected character' in /in/bXL8R:3 Stack trace: #0 /in/bXL8R(3): DateTime->__construct('1447282800') #1 {main} thrown in /in/bXL8R 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 (1462140000) at position 7 (0): Unexpected character' in /in/bXL8R:3 Stack trace: #0 /in/bXL8R(3): DateTime->__construct('1462140000') #1 {main} thrown in /in/bXL8R 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 (1460239200) at position 7 (2): Unexpected character' in /in/bXL8R:3 Stack trace: #0 /in/bXL8R(3): DateTime->__construct('1460239200') #1 {main} thrown in /in/bXL8R on line 3
Process exited with code 255.
Output for 5.6.19
object(DateTime)#1 (3) { ["date"]=> string(26) "1600-03-08 14:57:39.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.18
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1457996400) at position 8 (0): Unexpected character' in /in/bXL8R:3 Stack trace: #0 /in/bXL8R(3): DateTime->__construct('1457996400') #1 {main} thrown in /in/bXL8R 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 (1458342000) at position 7 (0): Unexpected character' in /in/bXL8R:3 Stack trace: #0 /in/bXL8R(3): DateTime->__construct('1458342000') #1 {main} thrown in /in/bXL8R 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 (1459116000) at position 7 (0): Unexpected character' in /in/bXL8R:3 Stack trace: #0 /in/bXL8R(3): DateTime->__construct('1459116000') #1 {main} thrown in /in/bXL8R 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 (1459202400) at position 7 (4): Unexpected character' in /in/bXL8R:3 Stack trace: #0 /in/bXL8R(3): DateTime->__construct('1459202400') #1 {main} thrown in /in/bXL8R on line 3
Process exited with code 255.
Output for 5.6.14
object(DateTime)#1 (3) { ["date"]=> string(26) "8000-04-02 14:59:54.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.13
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1460671200) at position 8 (0): Unexpected character' in /in/bXL8R:3 Stack trace: #0 /in/bXL8R(3): DateTime->__construct('1460671200') #1 {main} thrown in /in/bXL8R 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 (1461103200) at position 7 (2): Unexpected character' in /in/bXL8R:3 Stack trace: #0 /in/bXL8R(3): DateTime->__construct('1461103200') #1 {main} thrown in /in/bXL8R 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 (1461448800) at position 8 (0): Unexpected character' in /in/bXL8R:3 Stack trace: #0 /in/bXL8R(3): DateTime->__construct('1461448800') #1 {main} thrown in /in/bXL8R 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 (1461535200) at position 8 (0): Unexpected character' in /in/bXL8R:3 Stack trace: #0 /in/bXL8R(3): DateTime->__construct('1461535200') #1 {main} thrown in /in/bXL8R 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 (1461708000) at position 8 (0): Unexpected character' in /in/bXL8R:3 Stack trace: #0 /in/bXL8R(3): DateTime->__construct('1461708000') #1 {main} thrown in /in/bXL8R 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 (1461967200) at position 8 (0): Unexpected character' in /in/bXL8R:3 Stack trace: #0 /in/bXL8R(3): DateTime->__construct('1461967200') #1 {main} thrown in /in/bXL8R 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 (1463868000) at position 8 (0): Unexpected character' in /in/bXL8R:3 Stack trace: #0 /in/bXL8R(3): DateTime->__construct('1463868000') #1 {main} thrown in /in/bXL8R 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 (1460325600) at position 7 (6): Unexpected character' in /in/bXL8R:3 Stack trace: #0 /in/bXL8R(3): DateTime->__construct('1460325600') #1 {main} thrown in /in/bXL8R on line 3
Process exited with code 255.
Output for 5.5.33
object(DateTime)#1 (3) { ["date"]=> string(26) "8000-03-09 14:57:47.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.32
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1458169200) at position 7 (2): Unexpected character' in /in/bXL8R:3 Stack trace: #0 /in/bXL8R(3): DateTime->__construct('1458169200') #1 {main} thrown in /in/bXL8R on line 3
Process exited with code 255.
Output for 5.5.31
object(DateTime)#1 (3) { ["date"]=> string(26) "4800-03-21 14:58:51.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.30
object(DateTime)#1 (3) { ["date"]=> string(26) "1600-04-01 14:59:46.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.29
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1460844000) at position 8 (0): Unexpected character' in /in/bXL8R:3 Stack trace: #0 /in/bXL8R(3): DateTime->__construct('1460844000') #1 {main} thrown in /in/bXL8R 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 (1461189600) at position 7 (6): Unexpected character' in /in/bXL8R:3 Stack trace: #0 /in/bXL8R(3): DateTime->__construct('1461189600') #1 {main} thrown in /in/bXL8R 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 (1461276000) at position 7 (0): Unexpected character' in /in/bXL8R:3 Stack trace: #0 /in/bXL8R(3): DateTime->__construct('1461276000') #1 {main} thrown in /in/bXL8R 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 (1461621600) at position 8 (0): Unexpected character' in /in/bXL8R:3 Stack trace: #0 /in/bXL8R(3): DateTime->__construct('1461621600') #1 {main} thrown in /in/bXL8R 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 (1461880800) at position 8 (0): Unexpected character' in /in/bXL8R:3 Stack trace: #0 /in/bXL8R(3): DateTime->__construct('1461880800') #1 {main} thrown in /in/bXL8R 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 (1464040800) at position 8 (0): Unexpected character' in /in/bXL8R:3 Stack trace: #0 /in/bXL8R(3): DateTime->__construct('1464040800') #1 {main} thrown in /in/bXL8R on line 3
Process exited with code 255.