3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = strtotime('2014-01-15'); $date = '2014-01-15'; $daysbefor1979 = '25568'; $start = strtotime("1900-01-01"); echo $start; $diff = ($date - $start); $days = ($diff / 86400); echo date('Y-m-d', jdtounix(gregoriantojd(12, 31, 1899) + 41603)).PHP_EOL; echo round(($daysbefor1979+$days), 0);
based on QbjSk
Output for 7.1.0 - 7.2.0
-2208989972 Notice: A non well formed numeric value encountered in /in/IJLnE on line 8 2013-11-26 51135
Output for 5.5.0 - 7.0.20
-22089899722013-11-26 51135