 In January 2018, Hammarby switched manager once again with Stefan Billborn taking over as head coach.Khalili received much playing time during the pre-season and scored in a Svenska Cupen 3–3 draw against GAIS on 25 February.Khalili began the league play as a starter and scored a brace in the third round, as Hammarby won 4–0 against his former club Brommapojkarna on 16 April.