fork(1) download
  1. <?php
  2.  
  3.  
  4.  
  5. $date = new DateTime();
  6.  
  7.  
  8. echo json_encode(compact('date'), JSON_PRETTY_PRINT);
Success #stdin #stdout 0.03s 23604KB
stdin
Standard input is empty
stdout
{
    "date": {
        "date": "2018-08-09 16:46:19.241129",
        "timezone_type": 3,
        "timezone": "UTC"
    }
}