3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo date('r', strtotime('invalid_string')), PHP_EOL; echo date('r', strtotime('-1 montha')), PHP_EOL;
Output for 5.1.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Thu, 01 Jan 1970 01:00:00 +0100 Wed, 06 Feb 2013 13:27:02 +0100
Output for 4.3.11 - 4.4.9, 5.0.4 - 5.0.5
Thu, 01 Jan 1970 00:59:59 +0100 Thu, 01 Jan 1970 00:59:59 +0100
Output for 4.3.10, 5.0.2 - 5.0.3
Thu, 1 Jan 1970 00:59:59 +0100 Thu, 1 Jan 1970 00:59:59 +0100
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
Thu, 1 Jan 1970 00:59:59 +0100 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/Ul5lE on line 3 PHP_EOLThu, 1 Jan 1970 00:59:59 +0100 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/Ul5lE on line 4 PHP_EOL