@ 2015-09-29T12:53:11Z <?php
echo 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";
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for 8.0.0 - 8.0.30 , 8.1.0 - 8.1.28 , 8.2.0 - 8.2.18 , 8.3.0 - 8.3.6 Fatal error: Uncaught TypeError: date(): Argument #2 ($timestamp) must be of type ?int, string given in /in/h8r8I:2
Stack trace:
#0 /in/h8r8I(2): date('m', '03/12/2015')
#1 {main}
thrown in /in/h8r8I 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.28 , 7.0.0 - 7.0.20 , 7.1.0 - 7.1.33 , 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/h8r8I on line 2
01
968536800
1443617591
1444135991
1444323193
1443650400
1443391200
Output for 7.3.32 - 7.3.33 01
968544000
1443617591
1444135991
1444323193
1443657600
1443398400
preferences:dark mode live preview
248.43 ms | 401 KiB | 309 Q