Why it works
The Clock alarm is triggered by the iPhone's internal clock at the time shown on your phone. Silent mode and Do Not Disturb do not stop it either (Apple Support), so Airplane Mode plus Do Not Disturb is a good way to get a quiet night without missing the alarm.
Three things that can still go wrong
- Time zone on trips. Alarms ring at the phone's local time. If the phone cannot get network time after you land, it may still show the old zone. Check the clock before you sleep and set the alarm for the time the phone shows.
- Battery. A phone that dies overnight does not ring. Charge it or use Low Power Mode, which does not list alarms among the things it limits (Apple Support).
- Headphones you turned back on. If you re-enable Bluetooth for earbuds, the alarm plays through the speaker and the headphones (Apple Support).
Apple also warns that changing the time by hand in Settings can affect alarms (Apple Support), so do not fiddle with the clock to "fix" a time zone mid-trip.
An alarm that works offline
Sunrise works offline and needs no account, so Airplane Mode does not affect it. Use it for hotel mornings: loud sounds that ramp up and a math or steps mission so you do not switch it off half asleep.