How to know how long this createt using compare time php

$now = new DateTime();
$then = new DateTime('2016-10-10T09:53:25+0000');

$diff = $now->diff($then);
print_r($diff);
1 Like