fork download
  1. <?php
  2.  
  3. var_dump(date('c', mktime(1, 2, 3, 4, 5, 2038)));
  4.  
  5. var_dump(date('c', strtotime('+1000 year')));
  6.  
  7.  
  8. $d = new DateTime('+1000 years');
  9.  
  10. var_dump($d->format('c')); // 4115-11-25T09:00:23-02:00
Success #stdin #stdout 0.04s 52480KB
stdin
Standard input is empty
stdout
string(25) "1970-01-01T00:00:00+00:00"
string(25) "1970-01-01T00:00:00+00:00"
string(25) "3015-11-25T11:07:03+00:00"