3v4l.org

run code in 200+ 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 - 7.2.0
2014-07-28 00:00:00 2014-07-28 23:59:59