3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump( strtotime('+ 3 days'), strtotime('2012-04-08 14:23:52') ); var_dump((new DateTime(1403171054))->format('Y-m-d'));
Output for 7.0.14 - 7.1.0
int(1403172547) int(1333887832) Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (1403171054) at position 7 (0): Unexpected character in /in/dWko4:7 Stack trace: #0 /in/dWko4(7): DateTime->__construct('1403171054') #1 {main} thrown in /in/dWko4 on line 7
Process exited with code 255.
Output for 7.0.6
int(1462545254) int(1333887832) Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (1403171054) at position 7 (0): Unexpected character in /in/dWko4:7 Stack trace: #0 /in/dWko4(7): DateTime->__construct('1403171054') #1 {main} thrown in /in/dWko4 on line 7
Process exited with code 255.
Output for 7.0.5
int(1459911916) int(1333887832) Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (1403171054) at position 7 (0): Unexpected character in /in/dWko4:7 Stack trace: #0 /in/dWko4(7): DateTime->__construct('1403171054') #1 {main} thrown in /in/dWko4 on line 7
Process exited with code 255.
Output for 7.0.4
int(1457883664) int(1333887832) Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (1403171054) at position 7 (0): Unexpected character in /in/dWko4:7 Stack trace: #0 /in/dWko4(7): DateTime->__construct('1403171054') #1 {main} thrown in /in/dWko4 on line 7
Process exited with code 255.
Output for 7.0.3
int(1458577481) int(1333887832) Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (1403171054) at position 7 (0): Unexpected character in /in/dWko4:7 Stack trace: #0 /in/dWko4(7): DateTime->__construct('1403171054') #1 {main} thrown in /in/dWko4 on line 7
Process exited with code 255.
Output for 7.0.2
int(1458945085) int(1333887832) Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (1403171054) at position 7 (0): Unexpected character in /in/dWko4:7 Stack trace: #0 /in/dWko4(7): DateTime->__construct('1403171054') #1 {main} thrown in /in/dWko4 on line 7
Process exited with code 255.
Output for 7.0.1
int(1459043004) int(1333887832) Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (1403171054) at position 7 (0): Unexpected character in /in/dWko4:7 Stack trace: #0 /in/dWko4(7): DateTime->__construct('1403171054') #1 {main} thrown in /in/dWko4 on line 7
Process exited with code 255.
Output for 7.0.0
int(1459309221) int(1333887832) Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (1403171054) at position 7 (0): Unexpected character in /in/dWko4:7 Stack trace: #0 /in/dWko4(7): DateTime->__construct('1403171054') #1 {main} thrown in /in/dWko4 on line 7
Process exited with code 255.
Output for hhvm-3.12.0
int(1458090954) int(1333887832) Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1403171054) at position 7 (0): Unexpected character' in /in/dWko4:7 Stack trace: #0 /in/dWko4(7): DateTime->__construct() #1 {main}
Process exited with code 255.
Output for hhvm-3.10.0
int(1459629256) int(1333887832) Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1403171054) at position 7 (0): Unexpected character' in /in/dWko4:7 Stack trace: #0 /in/dWko4(7): DateTime->__construct() #1 {main}
Process exited with code 255.
Output for 5.6.28
int(1403172547) int(1333887832) Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1403171054) at position 7 (0): Unexpected character' in /in/dWko4:7 Stack trace: #0 /in/dWko4(7): DateTime->__construct('1403171054') #1 {main} thrown in /in/dWko4 on line 7
Process exited with code 255.
Output for 5.6.21
int(1462441476) int(1333887832) Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1403171054) at position 7 (0): Unexpected character' in /in/dWko4:7 Stack trace: #0 /in/dWko4(7): DateTime->__construct('1403171054') #1 {main} thrown in /in/dWko4 on line 7
Process exited with code 255.
Output for 5.6.20
int(1460512995) int(1333887832) Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1403171054) at position 7 (0): Unexpected character' in /in/dWko4:7 Stack trace: #0 /in/dWko4(7): DateTime->__construct('1403171054') #1 {main} thrown in /in/dWko4 on line 7
Process exited with code 255.
Output for 5.6.19
int(1457652503) int(1333887832) Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1403171054) at position 7 (0): Unexpected character' in /in/dWko4:7 Stack trace: #0 /in/dWko4(7): DateTime->__construct('1403171054') #1 {main} thrown in /in/dWko4 on line 7
Process exited with code 255.
Output for 5.6.18
int(1458289257) int(1333887832) Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1403171054) at position 7 (0): Unexpected character' in /in/dWko4:7 Stack trace: #0 /in/dWko4(7): DateTime->__construct('1403171054') #1 {main} thrown in /in/dWko4 on line 7
Process exited with code 255.
Output for 5.6.17
int(1458677606) int(1333887832) Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1403171054) at position 7 (0): Unexpected character' in /in/dWko4:7 Stack trace: #0 /in/dWko4(7): DateTime->__construct('1403171054') #1 {main} thrown in /in/dWko4 on line 7
Process exited with code 255.
Output for 5.6.16
int(1459398495) int(1333887832) Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1403171054) at position 7 (0): Unexpected character' in /in/dWko4:7 Stack trace: #0 /in/dWko4(7): DateTime->__construct('1403171054') #1 {main} thrown in /in/dWko4 on line 7
Process exited with code 255.
Output for 5.6.15
int(1459487961) int(1333887832) Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1403171054) at position 7 (0): Unexpected character' in /in/dWko4:7 Stack trace: #0 /in/dWko4(7): DateTime->__construct('1403171054') #1 {main} thrown in /in/dWko4 on line 7
Process exited with code 255.
Output for 5.6.14
int(1459840593) int(1333887832) Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1403171054) at position 7 (0): Unexpected character' in /in/dWko4:7 Stack trace: #0 /in/dWko4(7): DateTime->__construct('1403171054') #1 {main} thrown in /in/dWko4 on line 7
Process exited with code 255.
Output for 5.6.13
int(1460979175) int(1333887832) Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1403171054) at position 7 (0): Unexpected character' in /in/dWko4:7 Stack trace: #0 /in/dWko4(7): DateTime->__construct('1403171054') #1 {main} thrown in /in/dWko4 on line 7
Process exited with code 255.
Output for 5.6.12
int(1461376681) int(1333887832) Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1403171054) at position 7 (0): Unexpected character' in /in/dWko4:7 Stack trace: #0 /in/dWko4(7): DateTime->__construct('1403171054') #1 {main} thrown in /in/dWko4 on line 7
Process exited with code 255.
Output for 5.6.11
int(1461659379) int(1333887832) Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1403171054) at position 7 (0): Unexpected character' in /in/dWko4:7 Stack trace: #0 /in/dWko4(7): DateTime->__construct('1403171054') #1 {main} thrown in /in/dWko4 on line 7
Process exited with code 255.
Output for 5.6.10
int(1461839081) int(1333887832) Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1403171054) at position 7 (0): Unexpected character' in /in/dWko4:7 Stack trace: #0 /in/dWko4(7): DateTime->__construct('1403171054') #1 {main} thrown in /in/dWko4 on line 7
Process exited with code 255.
Output for 5.6.9
int(1462030345) int(1333887832) Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1403171054) at position 7 (0): Unexpected character' in /in/dWko4:7 Stack trace: #0 /in/dWko4(7): DateTime->__construct('1403171054') #1 {main} thrown in /in/dWko4 on line 7
Process exited with code 255.
Output for 5.6.8
int(1462234585) int(1333887832) Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1403171054) at position 7 (0): Unexpected character' in /in/dWko4:7 Stack trace: #0 /in/dWko4(7): DateTime->__construct('1403171054') #1 {main} thrown in /in/dWko4 on line 7
Process exited with code 255.
Output for 5.5.35
int(1464189302) int(1333887832) Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1403171054) at position 7 (0): Unexpected character' in /in/dWko4:7 Stack trace: #0 /in/dWko4(7): DateTime->__construct('1403171054') #1 {main} thrown in /in/dWko4 on line 7
Process exited with code 255.
Output for 5.5.34
int(1460607437) int(1333887832) Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1403171054) at position 7 (0): Unexpected character' in /in/dWko4:7 Stack trace: #0 /in/dWko4(7): DateTime->__construct('1403171054') #1 {main} thrown in /in/dWko4 on line 7
Process exited with code 255.
Output for 5.5.33
int(1457749743) int(1333887832) Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1403171054) at position 7 (0): Unexpected character' in /in/dWko4:7 Stack trace: #0 /in/dWko4(7): DateTime->__construct('1403171054') #1 {main} thrown in /in/dWko4 on line 7
Process exited with code 255.
Output for 5.5.32
int(1458475383) int(1333887832) Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1403171054) at position 7 (0): Unexpected character' in /in/dWko4:7 Stack trace: #0 /in/dWko4(7): DateTime->__construct('1403171054') #1 {main} thrown in /in/dWko4 on line 7
Process exited with code 255.
Output for 5.5.31
int(1458774247) int(1333887832) Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1403171054) at position 7 (0): Unexpected character' in /in/dWko4:7 Stack trace: #0 /in/dWko4(7): DateTime->__construct('1403171054') #1 {main} thrown in /in/dWko4 on line 7
Process exited with code 255.
Output for 5.5.30
int(1459753984) int(1333887832) Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1403171054) at position 7 (0): Unexpected character' in /in/dWko4:7 Stack trace: #0 /in/dWko4(7): DateTime->__construct('1403171054') #1 {main} thrown in /in/dWko4 on line 7
Process exited with code 255.
Output for 5.5.29
int(1461117379) int(1333887832) Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1403171054) at position 7 (0): Unexpected character' in /in/dWko4:7 Stack trace: #0 /in/dWko4(7): DateTime->__construct('1403171054') #1 {main} thrown in /in/dWko4 on line 7
Process exited with code 255.
Output for 5.5.28
int(1461474561) int(1333887832) Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1403171054) at position 7 (0): Unexpected character' in /in/dWko4:7 Stack trace: #0 /in/dWko4(7): DateTime->__construct('1403171054') #1 {main} thrown in /in/dWko4 on line 7
Process exited with code 255.
Output for 5.5.27
int(1461567905) int(1333887832) Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1403171054) at position 7 (0): Unexpected character' in /in/dWko4:7 Stack trace: #0 /in/dWko4(7): DateTime->__construct('1403171054') #1 {main} thrown in /in/dWko4 on line 7
Process exited with code 255.
Output for 5.5.26
int(1461935131) int(1333887832) Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1403171054) at position 7 (0): Unexpected character' in /in/dWko4:7 Stack trace: #0 /in/dWko4(7): DateTime->__construct('1403171054') #1 {main} thrown in /in/dWko4 on line 7
Process exited with code 255.
Output for 5.5.25
int(1462132422) int(1333887832) Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1403171054) at position 7 (0): Unexpected character' in /in/dWko4:7 Stack trace: #0 /in/dWko4(7): DateTime->__construct('1403171054') #1 {main} thrown in /in/dWko4 on line 7
Process exited with code 255.
Output for 5.5.24
int(1464316795) int(1333887832) Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1403171054) at position 7 (0): Unexpected character' in /in/dWko4:7 Stack trace: #0 /in/dWko4(7): DateTime->__construct('1403171054') #1 {main} thrown in /in/dWko4 on line 7
Process exited with code 255.
Output for 5.4.45
int(1442497748) int(1333887832) Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1403171054) at position 7 (0): Unexpected character' in /in/dWko4:7 Stack trace: #0 /in/dWko4(7): DateTime->__construct('1403171054') #1 {main} thrown in /in/dWko4 on line 7
Process exited with code 255.
Output for 5.4.44
int(1442497745) int(1333887832) Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1403171054) at position 7 (0): Unexpected character' in /in/dWko4:7 Stack trace: #0 /in/dWko4(7): DateTime->__construct('1403171054') #1 {main} thrown in /in/dWko4 on line 7
Process exited with code 255.
Output for 5.4.43
int(1442497741) int(1333887832) Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1403171054) at position 7 (0): Unexpected character' in /in/dWko4:7 Stack trace: #0 /in/dWko4(7): DateTime->__construct('1403171054') #1 {main} thrown in /in/dWko4 on line 7
Process exited with code 255.
Output for 5.4.42
int(1442497740) int(1333887832) Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1403171054) at position 7 (0): Unexpected character' in /in/dWko4:7 Stack trace: #0 /in/dWko4(7): DateTime->__construct('1403171054') #1 {main} thrown in /in/dWko4 on line 7
Process exited with code 255.
Output for 5.4.41
int(1442497738) int(1333887832) Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1403171054) at position 7 (0): Unexpected character' in /in/dWko4:7 Stack trace: #0 /in/dWko4(7): DateTime->__construct('1403171054') #1 {main} thrown in /in/dWko4 on line 7
Process exited with code 255.
Output for 5.4.40
int(1442497736) int(1333887832) Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1403171054) at position 7 (0): Unexpected character' in /in/dWko4:7 Stack trace: #0 /in/dWko4(7): DateTime->__construct('1403171054') #1 {main} thrown in /in/dWko4 on line 7
Process exited with code 255.
Output for 5.4.39
int(1442497734) int(1333887832) Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1403171054) at position 7 (0): Unexpected character' in /in/dWko4:7 Stack trace: #0 /in/dWko4(7): DateTime->__construct('1403171054') #1 {main} thrown in /in/dWko4 on line 7
Process exited with code 255.
Output for 5.4.38
int(1425695464) int(1333887832) Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1403171054) at position 7 (0): Unexpected character' in /in/dWko4:7 Stack trace: #0 /in/dWko4(7): DateTime->__construct('1403171054') #1 {main} thrown in /in/dWko4 on line 7
Process exited with code 255.
Output for 5.4.36 - 5.4.37
int(1425695458) int(1333887832) Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1403171054) at position 7 (0): Unexpected character' in /in/dWko4:7 Stack trace: #0 /in/dWko4(7): DateTime->__construct('1403171054') #1 {main} thrown in /in/dWko4 on line 7
Process exited with code 255.
Output for 5.4.34 - 5.4.35
int(1425695457) int(1333887832) Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1403171054) at position 7 (0): Unexpected character' in /in/dWko4:7 Stack trace: #0 /in/dWko4(7): DateTime->__construct('1403171054') #1 {main} thrown in /in/dWko4 on line 7
Process exited with code 255.
Output for 5.4.32
int(1410818402) int(1333887832) Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1403171054) at position 7 (0): Unexpected character' in /in/dWko4:7 Stack trace: #0 /in/dWko4(7): DateTime->__construct('1403171054') #1 {main} thrown in /in/dWko4 on line 7
Process exited with code 255.
Output for 5.4.31
int(1410818401) int(1333887832) Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1403171054) at position 7 (0): Unexpected character' in /in/dWko4:7 Stack trace: #0 /in/dWko4(7): DateTime->__construct('1403171054') #1 {main} thrown in /in/dWko4 on line 7
Process exited with code 255.
Output for 5.4.30
int(1410818398) int(1333887832) Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1403171054) at position 7 (0): Unexpected character' in /in/dWko4:7 Stack trace: #0 /in/dWko4(7): DateTime->__construct('1403171054') #1 {main} thrown in /in/dWko4 on line 7
Process exited with code 255.
Output for 5.4.22 - 5.4.29
int(1403172551) int(1333887832) Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1403171054) at position 7 (0): Unexpected character' in /in/dWko4:7 Stack trace: #0 /in/dWko4(7): DateTime->__construct('1403171054') #1 {main} thrown in /in/dWko4 on line 7
Process exited with code 255.
Output for 5.4.8 - 5.4.21
int(1403172552) int(1333887832) Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1403171054) at position 7 (0): Unexpected character' in /in/dWko4:7 Stack trace: #0 /in/dWko4(7): DateTime->__construct('1403171054') #1 {main} thrown in /in/dWko4 on line 7
Process exited with code 255.
Output for 5.4.0 - 5.4.7
int(1403172553) int(1333887832) Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1403171054) at position 7 (0): Unexpected character' in /in/dWko4:7 Stack trace: #0 /in/dWko4(7): DateTime->__construct('1403171054') #1 {main} thrown in /in/dWko4 on line 7
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/dWko4 on line 7
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/dWko4 on line 7
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/dWko4 on line 7
Process exited with code 255.