"We don't want to stay here for any longer than we have to."
Is this sentence correct? And does it mean the same as "We don't want to stay here any longer than necessary." ? I am unsure about the need of "for" and "any" maybe they can or should be left out to simply
"We don't want to stay here longer than we have to."