3v4l.org

run code in 300+ PHP versions simultaneously
<?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);

preferences:
53.06 ms | 402 KiB | 5 Q