3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo (new DateTime('2018-02-25'))->modify('Monday this week')->format('Y-m-d');
Output for 5.6.23 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.8 - 7.3.0beta1
2018-02-19
Output for 5.6.0 - 5.6.22, 7.0.0 - 7.0.7
2018-02-26