3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo new DateTime(date("m","03/12/2015")), "\n"; echo strtotime("10 September 2000"), "\n"; echo strtotime("+1 day"), "\n"; echo strtotime("+1 week"), "\n"; echo strtotime("+1 week 2 days 4 hours 2 seconds"), "\n"; echo strtotime("next Thursday"), "\n"; echo strtotime("last Monday"), "\n";
based on h8r8I
Output for 7.0.0 - 7.2.0
Notice: A non well formed numeric value encountered in /in/D9IBd on line 2 Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (01) at position 0 (0): Unexpected character in /in/D9IBd:2 Stack trace: #0 /in/D9IBd(2): DateTime->__construct('01') #1 {main} thrown in /in/D9IBd on line 2
Process exited with code 255.
Output for hhvm-3.11.1 - 3.17.3
Notice: A non well formed numeric value encountered in /in/D9IBd on line 2 Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (01) at position 0 (0): Unexpected character' in /in/D9IBd:2 Stack trace: #0 /in/D9IBd(2): DateTime->__construct() #1 {main}
Process exited with code 255.
Output for hhvm-3.10.1
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (01) at position 0 (0): Unexpected character' in /in/D9IBd:2 Stack trace: #0 /in/D9IBd(2): DateTime->__construct() #1 {main}
Process exited with code 255.
Output for 5.4.0 - 5.6.30
Notice: A non well formed numeric value encountered in /in/D9IBd on line 2 Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (01) at position 0 (0): Unexpected character' in /in/D9IBd:2 Stack trace: #0 /in/D9IBd(2): DateTime->__construct('01') #1 {main} thrown in /in/D9IBd on line 2
Process exited with code 255.