3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = new DateTime('2016-03-30 15:20:00'); $unixtime = strtotime($date->format('Y-m-d H:i:s'), strtotime("next Monday")); echo $time = date('Y-m-d H:i:s',$unixtime);
based on QBWJa
Output for 5.5.0 - 7.3.0beta1
2016-03-30 15:20:00