Ver original<?php $horai = '23:00';$horaf = '15:00'; $hora1u = strtotime($horai);$hora2u = strtotime($horaf); if ($hora1u > $hora2u) { echo 'Es mayor la hora inicial';} else { echo 'Es mayor la hora final';}