$hora1 = strtotime( "18:00" );$hora2 = strtotime( "19:00" );if( $hora1 > $hora2 ) { echo '$hora1 es mayor a $hora2';} else { echo '$hora2 es mayor a $hora1';}