<?php $start = strtotime('2017-09-01 23:00:00'); $stop = strtotime('2017-09-02 01:34:00'); $hours = ($stop - $start) / 3600; echo round($hours, 2); // 2.57
You have javascript disabled. You will not be able to edit any code.