3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $yesterday = date('Y-m-d', strtotime('yesterday')); $dateFrom = $yesterday . ' 00:00:00'; $dateTo = $yesterday . ' 23:59:59'; echo $dateFrom; echo "\n"; echo $dateTo;
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
2014-07-28 00:00:00 2014-07-28 23:59:59