3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $results = Array(); $server_time = new DateTime('UTC'); $results['server_time'] = $server_time->getTimestamp(); $cut_off = new DateTime('UTC'); date_time_set($cut_off, 10, 30, 00); $results['cut_off_time'] = $cut_off->getTimestamp(); echo json_encode($results); ?>
Output for 5.6.28, 7.0.20 - 7.2.0
{"server_time":1442015684,"cut_off_time":1441967400}
Output for 5.4.0 - 5.6.24, 7.0.0 - 7.0.9
{"server_time":1442015683,"cut_off_time":1441967400}