3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $start = date('Y-m-d H:m:s'); $end = date('Y-m-d H:m:s', strtotime($start . ' +24 hours')); $days = strtotime($end) - strtotime($start); echo $days; ?>
Output for 4.3.6 - 7.1.0
86400
Output for 4.3.0 - 4.3.5
-75600