Virtually any shotgun can be used for any of those activities. Having said that, virtually any shotgun is better suited to some purposes than others.
An 11-87 is a good choice for trap. You can use it for other types of clays, too. And you could use it for hunting. You'll probably find it more suited to waterfowl than upland, though.
If you're like most of us, you start out thinking this is kinda fun, but you can't see yourself spending more than a couple of thousand a year on it. It's a bit like cars. At first it's just fun to drive and the ease of transportation aspect is a big bonus. But it doesn't take long before you see much more expensive cars that you really would like to own. Soon, you're out shopping for a bike or a sports car.
Shotguns are a similar proposition. At first, you don't even know what all your choices are, or the reasons why one might be better than another. As the years go by, you start to learn which target games you like and/or what kind of hunting you enjoy. By then you've become familiar with different types of shotuns (pump, auto, O/U, SXS, etc.) and the vast differences between different makes and models even within a given type. And, you become sensitive to the importance of fitting the gun to yourself, patterning different loads and chokes, barrel configurations, and such.
What I'm trying to tell you is that an 11-87 is a great starting point. It's not easy, because the gun shops won't likely let you take guns out to try before you buy. But, most shooters will let you take a few shots with their guns and this is a good way to get a feel for what suits you. Keep in mind, though, that the guns you may try and like at the range probably won't be your favorites in the field. The advice that you get from members here must always be taken in the context that they're telling you what works for them. If you're a big guy and the guy giving the advice is much smaller than you, his choices might not work for you at all.
Try as many guns as you can BEFORE you go out and lay your money down. I know it's hard, once you've made the decision to go out and buy a gun, to sit tight and keep the bucks in your pocket - especially if they might get spent on something else in the meantime. But, you should be able to tell me what gun you need and why, rather than rely on the advice of strangers. This isn't like "What is the best brand of TV to buy" - this is a very personal and individual decision.
My first trap gun was an 11-87 Premier Trap (by coincidence). I saw everybody at the range using O/U's and auto's, so I figured they must be the right choice. I shot about 5 or 6 rounds with the 11-87 and couldn't hit the broad side of a barn door with it. Threw it in the cabinet and went out and bought a whole series of other shotguns since. My wife came out to the range with us a year later, used the 11-87 and loved it. No matter what people offer her to try, she still prefers the 11-87. Go figure.
SS