Doha Layover - Leave the Airport?

I'm looking at flight options for a trip I intend to take. The cheapest option involves changing planes in Doha, Qatar. The options are very similarly priced, one with a 3 hour layover and another with a 9 hour layover.
My nationality is such that I can get a Visa on Arrival (another question might be how much this costs?!). Am I permitted (as a male over the age of 18, not-resident in Qatar) to leave the airport when transferring from Qatar Airways to Qatar Airways flights? Given that I will arrive at 5AM and leave the city around 11AM, would there be much to see/do in Doha? Will heat be an issue in mid-May?
Pictures about "Doha Layover - Leave the Airport?"



Can I leave the Doha airport during a layover?
Can you leave Doha Airport during a layover? Yes, you can.What to do if you have a long layover in Doha?
Here's what to do on a stopover in Doha, Qatar, for a memorable experience.Do I have to go through customs for a connecting flight in Doha?
That is normal. Also, in this case, you will not go through immigration or customs, you will just come out of your first leg plane with hand luggage, and will board the second leg. Again, with above assumption, you will get both boarding passes at Origin, and also will check your luggage in at same time.What is there to do at Doha airport for 8 hours?
10 Things to do on a layover at Doha Airport- Grab a bite to eat. The airport doesn't have an overwhelming amount of food choices, but what's there are eateries featuring Middle Eastern, international, and Western cuisine. ...
- Lounge. ...
- Tour Doha \u2013 for free! ...
- Visit the desert. ...
- Shop. ...
- Shower. ...
- Take in the art. ...
- Hit the gym or spa.
7+ Hours layover at Hamad International Airport | Doha, Qatar | First international trip after COVID
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Gustavo Fring, Gustavo Fring, Gustavo Fring, Gustavo Fring