3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $last_week = strtotime('Last Saturday 11:00:01 PM'); $last_week = date("Y-m-d H:i:s", $last_week); $today = strtotime('Today 11 PM'); $today = date("Y-m-d H:i:s", $today); echo $last_week; echo $today;
Output for 4.3.0 - 5.0.5, 5.1.2 - 7.1.0
2014-05-24 23:00:012014-05-30 23:00:00
Output for 5.1.0 - 5.1.1
2014-05-24 23:00:011970-01-01 01:00:00