3v4l.org

run code in 300+ PHP versions simultaneously
<?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";
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
Fatal error: Uncaught TypeError: date(): Argument #2 ($timestamp) must be of type ?int, string given in /in/D9IBd:2 Stack trace: #0 /in/D9IBd(2): date('m', '03/12/2015') #1 {main} thrown in /in/D9IBd on line 2
Process exited with code 255.
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.33
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 7.3.32 - 7.3.33
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 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.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.

preferences:
220.95 ms | 402 KiB | 297 Q