Phase dependence of electron acceleration in a tightly focused laser beam