Everton are through to the FA Cup fourth round after sacking Sean Dyche just hours before their match against Peterborough.