How to calculate difference between two dates using Global PHP field?
The function date() is a formatting function, if you want to use date_diff() your code needs to be something like:

$today = new DateTime();
$load = new DateTime($data-&gt;field_field_date_loading[0]['raw']['value']);
$diff = date_diff($load, $today);