PepsiCo earnings beat expectations, boosted by strong snack performance