3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php date_default_timezone_set('Asia/Singapore'); echo new DateTime('Y-m-t');
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (Y-m-t) at position 1 (-): Unexpected character in /in/Puin4:4 Stack trace: #0 /in/Puin4(4): DateTime->__construct('Y-m-t') #1 {main} thrown in /in/Puin4 on line 4
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 (Y-m-t) at position 1 (-): Unexpected character' in /in/Puin4:4 Stack trace: #0 /in/Puin4(4): DateTime->__construct() #1 {main}
Process exited with code 255.
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.3.7 - 5.6.28
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (Y-m-t) at position 1 (-): Unexpected character' in /in/Puin4:4 Stack trace: #0 /in/Puin4(4): DateTime->__construct('Y-m-t') #1 {main} thrown in /in/Puin4 on line 4
Process exited with code 255.