Concept:
Phenol can be prepared from a haloarene by nucleophilic substitution, from an amine through its diazonium salt, and from an arene by sulphonation and alkali fusion. We write each route in turn.
Route 1, chlorobenzene:
Use aqueous NaOH at 623 K and 300 atm. The product is the phenoxide salt, which needs acid to release phenol.
\[ C_6H_5Cl \xrightarrow[623\ K,\ 300\ atm]{NaOH\ (aq)} C_6H_5ONa \xrightarrow{HCl} C_6H_5OH \]
Route 2, aniline:
Treat $C_6H_5NH_2$ with $NaNO_2$ and HCl below 278 K to form benzenediazonium chloride. Then boil the solution with water or dilute acid, and nitrogen is lost.
\[ C_6H_5NH_2 \xrightarrow[273-278\ K]{NaNO_2 + HCl} C_6H_5N_2^{+}Cl^{-} \xrightarrow{H_2O,\ warm} C_6H_5OH + N_2 + HCl \]
Route 3, benzene:
Sulphonate benzene with oleum to get $C_6H_5SO_3H$. Fuse this with NaOH to replace the sulphonic group by the hydroxide group. Acidify the sodium phenoxide at the end.
\[ C_6H_6 \xrightarrow{oleum} C_6H_5SO_3H \xrightarrow[573\ K]{NaOH\ (fusion)} C_6H_5ONa \xrightarrow{H^+} C_6H_5OH \]
Why the conditions differ:
The C-Cl bond in chlorobenzene has partial double bond character from resonance, so it needs high temperature and pressure. A diazonium salt is unstable above 278 K, so the first stage is done in an ice bath and the water step is done later with gentle warming. Sulphonation is reversible, so the strong alkali fusion is what finally replaces the sulphonic group.
Phenol made by any of these routes is purified by distillation or crystallisation after the acid step.
Balanced overall idea: in every route an oxygen group ends up on the benzene ring in place of Cl, $N_2^+$ or $SO_3H$.
Result:
All three starting materials lead to phenol with the conditions shown above.
\[ \boxed{\text{Dow process; diazotisation then hydrolysis; sulphonation then alkali fusion}} \]