3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $now = strtotime('now'); $next_monday = strtotime('Monday'); echo $next_monday-$now . "\r\n"; echo date('Y-m-d', $now) . "T00:00:00<br>"; echo date('Y-m-d', $next_monday) . "T00:00:00"; ?>
Output for 4.3.0 - 4.4.9, 5.0.3 - 7.3.0beta1, 7.3.0rc4
60888 2014-06-22T00:00:00<br>2014-06-23T00:00:00
Output for 7.3.0rc3
60887 2014-06-22T00:00:00<br>2014-06-23T00:00:00
Output for 5.0.0 - 5.0.2
86400 2014-06-22T00:00:00<br>2014-06-23T00:00:00