3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php // echo date( "Y-m-d", strtotime( "2009-12-01 -1 day" ) ).' 23:59:59'; $dateTo = strtotime(date('Y-m-d', strtotime('-1 day', date_create('2017-12-01 04:00:00')->getTimestamp())) ." 23:59:59"); echo gmdate("Y-m-d H:i:s", $dateTo);; $dateTo = strtotime(date('Y-m-d', strtotime('-1 day')) ." 23:59:59"); echo gmdate("Y-m-d H:i:s", 1464739200);
based on 2h0q7
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.0 - 7.3.0beta1
2017-11-30 22:59:592016-06-01 00:00:00