The relative stability of alkyl carbocation is due to inductive effect and hyperconjugation, while that of stable carbocation is due to resonance. The order is:
$CH _{3} CH _{2} X <\left( CH _{3}\right)_{2} CH - X< CH _{2}= CH - CH _{2} X < PhCH _{2}- X .$