<?php $dt1 = date_create('2019-10-01 15:00');$dt2 = date_create('2019-10-02 10:00'); var_dump($dt1->diff($dt2)->format("%d %H:%I:%S"));
Standard input is empty
string(10) "0 19:00:00"
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!