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)) / (24 * 60 * 60); echo $days; ?>
Output for 4.3.6 - 5.6.25, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
1
Output for 4.3.0 - 4.3.5
-0.875