France warned its citizens in Iran to leave the country as soon as possible as tensions spiral in the Middle East.
It also formally advised its citizen against travelling to Iran.
Paris issued the advice due to a risk of military escalation in the region, the foreign ministry said on Friday.
The Foreign Office in Britain already advises against all travel to Iran.
“British and British-Iranian dual nationals are at significant risk of arrest, questioning or detention,” it said.
“ Having a British passport or connections to the UK can be reason enough for the Iranian authorities to detain you.”
British citizens are already being advised to leave Lebanon, while commercial flights are still running, and to register with the Foreign Office in case an evacuation is needed.
Earlier on Friday, Joe Biden said the assassination of Hamas leader Ismail Haniyeh was not helpful to reaching a ceasefire in Israel’s war in Gaza.
The US president made the comment as another airline suspended flights to Tel Aviv as tensions spiralled in the Middle East.
Haniyeh was killed in an airstrike on Wednesday when he was visiting Tehran to attend the swearing in ceremony for Iran’s new president Masoud Pezeshkian.
“It doesn’t help,” Mr Biden told reporters late on Thursday, when asked if Haniyeh’s assassination ruined the chances for a Gaza ceasefire agreement.
The US president also said he had spoken with Israeli Prime Minister Benjamin Netanyahu earlier on Thursday.