3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo date('Y-m-d', strtotime('monday last week')).PHP_EOL; echo date('Y-m-d', strtotime('tuesday last week')).PHP_EOL; echo date('Y-m-d', strtotime('wednesday last week')).PHP_EOL; echo date('Y-m-d', strtotime('thursday last week')).PHP_EOL; echo date('Y-m-d', strtotime('friday last week')).PHP_EOL;
Output for 5.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
2014-02-10 2014-02-11 2014-02-12 2014-02-13 2014-02-14
Output for 4.3.10 - 4.4.9, 5.0.2 - 5.2.17
2014-02-17 2014-02-11 2014-02-12 2014-02-13 2014-02-14
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/EtFgM on line 3 2014-02-17PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/EtFgM on line 4 2014-02-11PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/EtFgM on line 5 2014-02-12PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/EtFgM on line 6 2014-02-13PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/EtFgM on line 7 2014-02-14PHP_EOL