3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $startTimeStamp = strtotime("1971/01/01"); $endTimeStamp = date("d/m/Y"); $timeDiff = abs($endTimeStamp - $startTimeStamp); $numberDays = $timeDiff/86400; // 86400 seconds in one day // and you might want to convert to integer echo $numberDays = intval($numberDays); ?>
Output for 7.1.0
Notice: A non well formed numeric value encountered in /in/ZcGt2 on line 6 364
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.0.14
364