- var_dump: documentation ( source)
<?php
$tripStart = new DateTime('01/09/2013');
$tripEnd = new DateTime('02/09/2013');
$nightStart = 23;
$nightEnd = 5;
$duration = $tripEnd->getTimestamp() - $tripStart->getTimestamp();
var_dump($duration * 60);
?>