3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo date("r", strtotime("2009-03-20")); echo PHP_EOL; echo date("r", strtotime("2009-03-20 +6 weekday"));
based on dotpv
Output for 5.2.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Fri, 20 Mar 2009 00:00:00 +0100 Mon, 30 Mar 2009 00:00:00 +0200
Output for 5.1.0 - 5.1.6
Fri, 20 Mar 2009 00:00:00 +0100 Thu, 01 Jan 1970 01:00:00 +0100
Output for 4.3.11 - 4.4.9, 5.0.4 - 5.0.5
Fri, 20 Mar 2009 00:00:00 +0100 Thu, 01 Jan 1970 00:59:59 +0100
Output for 4.3.10, 5.0.2 - 5.0.3
Fri, 20 Mar 2009 00:00:00 +0100 Thu, 1 Jan 1970 00:59:59 +0100
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
Fri, 20 Mar 2009 00:00:00 +0100 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/I1eK4 on line 3 PHP_EOLThu, 1 Jan 1970 00:59:59 +0100