fork download
  1. <?php
  2.  
  3. $date = new DateTime();
  4. $date->setTimestamp(PHP_INT_MAX);
  5. var_dump($date->format('c'));
  6.  
  7. var_dump(PHP_INT_MAX);
Success #stdin #stdout 0.02s 52472KB
stdin
Standard input is empty
stdout
string(25) "2038-01-19T03:14:07+00:00"
int(2147483647)