3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = strtotime('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 mn1Xn
Output for 5.5.0 - 7.2.0
-22089899722013-11-26 67220