3v4l.org

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