3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump((new DateTime())->format('d-m-Y-H:i:s:u')); var_dump(date('u')); var_dump((new DateTime(microtime(true)))->format('d-m-Y-H:i:s:u'));
Output for 7.1.0
string(26) "10-07-2014-15:19:19:003958" string(6) "000000" Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (1404998359.004) at position 8 (5): Unexpected character in /in/KIVvA:5 Stack trace: #0 /in/KIVvA(5): DateTime->__construct('1404998359.004') #1 {main} thrown in /in/KIVvA on line 5
Process exited with code 255.
Output for 7.0.14
string(26) "10-07-2014-15:19:19:000000" string(6) "000000" Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (1404998359.0039) at position 8 (5): Unexpected character in /in/KIVvA:5 Stack trace: #0 /in/KIVvA(5): DateTime->__construct('1404998359.0039') #1 {main} thrown in /in/KIVvA on line 5
Process exited with code 255.
Output for 7.0.1, 7.0.9
string(26) "10-07-2014-15:19:19:000000" string(6) "000000" Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (1404998359.0036) at position 8 (5): Unexpected character in /in/KIVvA:5 Stack trace: #0 /in/KIVvA(5): DateTime->__construct('1404998359.0036') #1 {main} thrown in /in/KIVvA on line 5
Process exited with code 255.
Output for 7.0.8
string(26) "10-07-2014-15:19:19:000000" string(6) "000000" Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (1404998359.0035) at position 8 (5): Unexpected character in /in/KIVvA:5 Stack trace: #0 /in/KIVvA(5): DateTime->__construct('1404998359.0035') #1 {main} thrown in /in/KIVvA on line 5
Process exited with code 255.
Output for 7.0.7
string(26) "10-07-2014-15:19:19:000000" string(6) "000000" Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (1404998359.004) at position 8 (5): Unexpected character in /in/KIVvA:5 Stack trace: #0 /in/KIVvA(5): DateTime->__construct('1404998359.004') #1 {main} thrown in /in/KIVvA on line 5
Process exited with code 255.
Output for 7.0.4 - 7.0.6
string(26) "10-07-2014-15:19:19:000000" string(6) "000000" Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (1404998359.0037) at position 8 (5): Unexpected character in /in/KIVvA:5 Stack trace: #0 /in/KIVvA(5): DateTime->__construct('1404998359.0037') #1 {main} thrown in /in/KIVvA on line 5
Process exited with code 255.
Output for 7.0.3
string(26) "10-07-2014-15:19:19:000000" string(6) "000000" Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (1404998359.0041) at position 8 (5): Unexpected character in /in/KIVvA:5 Stack trace: #0 /in/KIVvA(5): DateTime->__construct('1404998359.0041') #1 {main} thrown in /in/KIVvA on line 5
Process exited with code 255.
Output for 7.0.2
string(26) "10-07-2014-15:19:19:000000" string(6) "000000" Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (1404998359.0042) at position 8 (5): Unexpected character in /in/KIVvA:5 Stack trace: #0 /in/KIVvA(5): DateTime->__construct('1404998359.0042') #1 {main} thrown in /in/KIVvA on line 5
Process exited with code 255.
Output for 7.0.0
string(26) "10-07-2014-15:19:19:000000" string(6) "000000" Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (1404998359.0043) at position 8 (5): Unexpected character in /in/KIVvA:5 Stack trace: #0 /in/KIVvA(5): DateTime->__construct('1404998359.0043') #1 {main} thrown in /in/KIVvA on line 5
Process exited with code 255.
Output for hhvm-3.12.0
string(26) "10-07-2014-15:19:19:000000" string(6) "000000" Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1404998359.3657) at position 8 (5): Unexpected character' in /in/KIVvA:5 Stack trace: #0 /in/KIVvA(5): DateTime->__construct() #1 {main}
Process exited with code 255.
Output for hhvm-3.10.0
string(26) "10-07-2014-15:19:19:000000" string(6) "000000" Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1404998359.2158) at position 8 (5): Unexpected character' in /in/KIVvA:5 Stack trace: #0 /in/KIVvA(5): DateTime->__construct() #1 {main}
Process exited with code 255.
Output for 5.5.29, 5.6.13, 5.6.28
string(26) "10-07-2014-15:19:19:000000" string(6) "000000" Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1404998359.0045) at position 8 (5): Unexpected character' in /in/KIVvA:5 Stack trace: #0 /in/KIVvA(5): DateTime->__construct('1404998359.0045') #1 {main} thrown in /in/KIVvA on line 5
Process exited with code 255.
Output for 5.5.18, 5.6.24
string(26) "10-07-2014-15:19:19:000000" string(6) "000000" Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1404998359.0035) at position 8 (5): Unexpected character' in /in/KIVvA:5 Stack trace: #0 /in/KIVvA(5): DateTime->__construct('1404998359.0035') #1 {main} thrown in /in/KIVvA on line 5
Process exited with code 255.
Output for 5.6.18, 5.6.23
string(26) "10-07-2014-15:19:19:000000" string(6) "000000" Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1404998359.0043) at position 8 (5): Unexpected character' in /in/KIVvA:5 Stack trace: #0 /in/KIVvA(5): DateTime->__construct('1404998359.0043') #1 {main} thrown in /in/KIVvA on line 5
Process exited with code 255.
Output for 5.5.35, 5.6.22
string(26) "10-07-2014-15:19:19:000000" string(6) "000000" Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1404998359.0048) at position 8 (5): Unexpected character' in /in/KIVvA:5 Stack trace: #0 /in/KIVvA(5): DateTime->__construct('1404998359.0048') #1 {main} thrown in /in/KIVvA on line 5
Process exited with code 255.
Output for 5.6.1, 5.6.16, 5.6.21
string(26) "10-07-2014-15:19:19:000000" string(6) "000000" Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1404998359.0039) at position 8 (5): Unexpected character' in /in/KIVvA:5 Stack trace: #0 /in/KIVvA(5): DateTime->__construct('1404998359.0039') #1 {main} thrown in /in/KIVvA on line 5
Process exited with code 255.
Output for 5.4.45, 5.6.14, 5.6.20
string(26) "10-07-2014-15:19:19:000000" string(6) "000000" Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1404998359.0038) at position 8 (5): Unexpected character' in /in/KIVvA:5 Stack trace: #0 /in/KIVvA(5): DateTime->__construct('1404998359.0038') #1 {main} thrown in /in/KIVvA on line 5
Process exited with code 255.
Output for 5.6.19
string(26) "10-07-2014-15:19:19:000000" string(6) "000000" Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1404998359.005) at position 8 (5): Unexpected character' in /in/KIVvA:5 Stack trace: #0 /in/KIVvA(5): DateTime->__construct('1404998359.005') #1 {main} thrown in /in/KIVvA on line 5
Process exited with code 255.
Output for 5.5.31, 5.6.17
string(26) "10-07-2014-15:19:19:000000" string(6) "000000" Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1404998359.0049) at position 8 (5): Unexpected character' in /in/KIVvA:5 Stack trace: #0 /in/KIVvA(5): DateTime->__construct('1404998359.0049') #1 {main} thrown in /in/KIVvA on line 5
Process exited with code 255.
Output for 5.6.9, 5.6.11, 5.6.15
string(26) "10-07-2014-15:19:19:000000" string(6) "000000" Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1404998359.0037) at position 8 (5): Unexpected character' in /in/KIVvA:5 Stack trace: #0 /in/KIVvA(5): DateTime->__construct('1404998359.0037') #1 {main} thrown in /in/KIVvA on line 5
Process exited with code 255.
Output for 5.5.37, 5.6.12
string(26) "10-07-2014-15:19:19:000000" string(6) "000000" Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1404998359.0036) at position 8 (5): Unexpected character' in /in/KIVvA:5 Stack trace: #0 /in/KIVvA(5): DateTime->__construct('1404998359.0036') #1 {main} thrown in /in/KIVvA on line 5
Process exited with code 255.
Output for 5.4.19, 5.4.37, 5.5.5, 5.5.26, 5.6.4, 5.6.6, 5.6.10
string(26) "10-07-2014-15:19:19:000000" string(6) "000000" Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1404998359.0031) at position 8 (5): Unexpected character' in /in/KIVvA:5 Stack trace: #0 /in/KIVvA(5): DateTime->__construct('1404998359.0031') #1 {main} thrown in /in/KIVvA on line 5
Process exited with code 255.
Output for 5.4.43, 5.5.3, 5.5.7, 5.5.10, 5.5.12 - 5.5.13, 5.5.20, 5.5.22 - 5.5.23, 5.6.0, 5.6.7 - 5.6.8
string(26) "10-07-2014-15:19:19:000000" string(6) "000000" Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1404998359.0028) at position 8 (5): Unexpected character' in /in/KIVvA:5 Stack trace: #0 /in/KIVvA(5): DateTime->__construct('1404998359.0028') #1 {main} thrown in /in/KIVvA on line 5
Process exited with code 255.
Output for 5.4.30, 5.6.5
string(26) "10-07-2014-15:19:19:000000" string(6) "000000" Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1404998359.0032) at position 8 (5): Unexpected character' in /in/KIVvA:5 Stack trace: #0 /in/KIVvA(5): DateTime->__construct('1404998359.0032') #1 {main} thrown in /in/KIVvA on line 5
Process exited with code 255.
Output for 5.5.0, 5.5.2, 5.5.14, 5.6.3
string(26) "10-07-2014-15:19:19:000000" string(6) "000000" Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1404998359.0033) at position 8 (5): Unexpected character' in /in/KIVvA:5 Stack trace: #0 /in/KIVvA(5): DateTime->__construct('1404998359.0033') #1 {main} thrown in /in/KIVvA on line 5
Process exited with code 255.
Output for 5.4.39, 5.5.16, 5.6.2
string(26) "10-07-2014-15:19:19:000000" string(6) "000000" Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1404998359.0029) at position 8 (5): Unexpected character' in /in/KIVvA:5 Stack trace: #0 /in/KIVvA(5): DateTime->__construct('1404998359.0029') #1 {main} thrown in /in/KIVvA on line 5
Process exited with code 255.
Output for 5.5.34, 5.5.36, 5.5.38
string(26) "10-07-2014-15:19:19:000000" string(6) "000000" Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1404998359.0044) at position 8 (5): Unexpected character' in /in/KIVvA:5 Stack trace: #0 /in/KIVvA(5): DateTime->__construct('1404998359.0044') #1 {main} thrown in /in/KIVvA on line 5
Process exited with code 255.
Output for 5.5.30, 5.5.33
string(26) "10-07-2014-15:19:19:000000" string(6) "000000" Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1404998359.0047) at position 8 (5): Unexpected character' in /in/KIVvA:5 Stack trace: #0 /in/KIVvA(5): DateTime->__construct('1404998359.0047') #1 {main} thrown in /in/KIVvA on line 5
Process exited with code 255.
Output for 5.5.32
string(26) "10-07-2014-15:19:19:000000" string(6) "000000" Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1404998359.0046) at position 8 (5): Unexpected character' in /in/KIVvA:5 Stack trace: #0 /in/KIVvA(5): DateTime->__construct('1404998359.0046') #1 {main} thrown in /in/KIVvA on line 5
Process exited with code 255.
Output for 5.5.28
string(26) "10-07-2014-15:19:19:000000" string(6) "000000" Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1404998359.0041) at position 8 (5): Unexpected character' in /in/KIVvA:5 Stack trace: #0 /in/KIVvA(5): DateTime->__construct('1404998359.0041') #1 {main} thrown in /in/KIVvA on line 5
Process exited with code 255.
Output for 5.4.34, 5.5.25, 5.5.27
string(26) "10-07-2014-15:19:19:000000" string(6) "000000" Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1404998359.003) at position 8 (5): Unexpected character' in /in/KIVvA:5 Stack trace: #0 /in/KIVvA(5): DateTime->__construct('1404998359.003') #1 {main} thrown in /in/KIVvA on line 5
Process exited with code 255.
Output for 5.4.23, 5.4.26, 5.4.28, 5.5.1, 5.5.6, 5.5.8 - 5.5.9, 5.5.21, 5.5.24
string(26) "10-07-2014-15:19:19:000000" string(6) "000000" Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1404998359.0027) at position 8 (5): Unexpected character' in /in/KIVvA:5 Stack trace: #0 /in/KIVvA(5): DateTime->__construct('1404998359.0027') #1 {main} thrown in /in/KIVvA on line 5
Process exited with code 255.
Output for 5.4.44, 5.5.19
string(26) "10-07-2014-15:19:19:000000" string(6) "000000" Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1404998359.0034) at position 8 (5): Unexpected character' in /in/KIVvA:5 Stack trace: #0 /in/KIVvA(5): DateTime->__construct('1404998359.0034') #1 {main} thrown in /in/KIVvA on line 5
Process exited with code 255.
Output for 5.4.32, 5.5.15
string(26) "10-07-2014-15:19:19:000000" string(6) "000000" Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1404998359.004) at position 8 (5): Unexpected character' in /in/KIVvA:5 Stack trace: #0 /in/KIVvA(5): DateTime->__construct('1404998359.004') #1 {main} thrown in /in/KIVvA on line 5
Process exited with code 255.
Output for 5.5.11
string(26) "10-07-2014-15:19:19:000000" string(6) "000000" Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1404998359.0042) at position 8 (5): Unexpected character' in /in/KIVvA:5 Stack trace: #0 /in/KIVvA(5): DateTime->__construct('1404998359.0042') #1 {main} thrown in /in/KIVvA on line 5
Process exited with code 255.
Output for 5.4.15, 5.4.31, 5.4.42, 5.5.4
string(26) "10-07-2014-15:19:19:000000" string(6) "000000" Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1404998359.0026) at position 8 (5): Unexpected character' in /in/KIVvA:5 Stack trace: #0 /in/KIVvA(5): DateTime->__construct('1404998359.0026') #1 {main} thrown in /in/KIVvA on line 5
Process exited with code 255.
Output for 5.4.2, 5.4.6, 5.4.8, 5.4.17, 5.4.20 - 5.4.22, 5.4.25, 5.4.27, 5.4.29, 5.4.35 - 5.4.36, 5.4.38, 5.4.40 - 5.4.41
string(26) "10-07-2014-15:19:19:000000" string(6) "000000" Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1404998359.0024) at position 8 (5): Unexpected character' in /in/KIVvA:5 Stack trace: #0 /in/KIVvA(5): DateTime->__construct('1404998359.0024') #1 {main} thrown in /in/KIVvA on line 5
Process exited with code 255.
Output for 5.4.16, 5.4.24
string(26) "10-07-2014-15:19:19:000000" string(6) "000000" Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1404998359.0025) at position 8 (5): Unexpected character' in /in/KIVvA:5 Stack trace: #0 /in/KIVvA(5): DateTime->__construct('1404998359.0025') #1 {main} thrown in /in/KIVvA on line 5
Process exited with code 255.
Output for 5.4.0 - 5.4.1, 5.4.18
string(26) "10-07-2014-15:19:19:000000" string(6) "000000" Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1404998359.0023) at position 8 (5): Unexpected character' in /in/KIVvA:5 Stack trace: #0 /in/KIVvA(5): DateTime->__construct('1404998359.0023') #1 {main} thrown in /in/KIVvA on line 5
Process exited with code 255.
Output for 5.4.12, 5.4.14
string(26) "10-07-2014-15:19:19:000000" string(6) "000000" Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1404998359.0015) at position 8 (5): Unexpected character' in /in/KIVvA:5 Stack trace: #0 /in/KIVvA(5): DateTime->__construct('1404998359.0015') #1 {main} thrown in /in/KIVvA on line 5
Process exited with code 255.
Output for 5.4.13
string(26) "10-07-2014-15:19:19:000000" string(6) "000000" Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1404998359.0013) at position 8 (5): Unexpected character' in /in/KIVvA:5 Stack trace: #0 /in/KIVvA(5): DateTime->__construct('1404998359.0013') #1 {main} thrown in /in/KIVvA on line 5
Process exited with code 255.
Output for 5.4.4, 5.4.11
string(26) "10-07-2014-15:19:19:000000" string(6) "000000" Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1404998359.0021) at position 8 (5): Unexpected character' in /in/KIVvA:5 Stack trace: #0 /in/KIVvA(5): DateTime->__construct('1404998359.0021') #1 {main} thrown in /in/KIVvA on line 5
Process exited with code 255.
Output for 5.4.7, 5.4.10
string(26) "10-07-2014-15:19:19:000000" string(6) "000000" Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1404998359.0017) at position 8 (5): Unexpected character' in /in/KIVvA:5 Stack trace: #0 /in/KIVvA(5): DateTime->__construct('1404998359.0017') #1 {main} thrown in /in/KIVvA on line 5
Process exited with code 255.
Output for 5.4.9
string(26) "10-07-2014-15:19:19:000000" string(6) "000000" Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1404998359.0022) at position 8 (5): Unexpected character' in /in/KIVvA:5 Stack trace: #0 /in/KIVvA(5): DateTime->__construct('1404998359.0022') #1 {main} thrown in /in/KIVvA on line 5
Process exited with code 255.
Output for 5.4.3, 5.4.5
string(26) "10-07-2014-15:19:19:000000" string(6) "000000" Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1404998359.0016) at position 8 (5): Unexpected character' in /in/KIVvA:5 Stack trace: #0 /in/KIVvA(5): DateTime->__construct('1404998359.0016') #1 {main} thrown in /in/KIVvA on line 5
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/KIVvA on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_OBJECT_OPERATOR in /in/KIVvA on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/KIVvA on line 3
Process exited with code 255.