3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo $ts = date('d.m.Y', strtotime('this sunday', strtotime('05/03/2015'))); echo PHP_EOL; echo $ts = date('d.m.Y', strtotime('this saturday', strtotime('05/03/2015')));
based on ICYoA
Output for 4.3.10 - 4.4.9, 5.0.2 - 7.2.0
03.05.2015 09.05.2015
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
03.05.2015 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/hY15J on line 4 PHP_EOL09.05.2015