Abstract This paper studies optical solitons with fractional temporal evolution in presence of Hamiltonian perturbation terms. The three types of nonlinearity are Kerr law, parabolic law and dual-power law. The first integral method with conformable fractional derivative is applied to retrieve soliton solutions to the model. Several constraint conditions guarantee the existence of such solitons.