3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $timeEnd = '2013-08-12 01:15:23'; $toHour = 10; $timeStart = date('Y-m-d H:i:s', strtotime($timeEnd) - $toHour * 3600); echo "Fetch data between $timeStart to $timeEnd";
Output for 4.3.0 - 7.1.0
Fetch data between 2013-08-11 15:15:23 to 2013-08-12 01:15:23