Officially, there is a free tier: you can play through to level 20 without paying, with no time limit on that content. Beyond that, a subscription is required.
The alternative — private servers — is not supported by Blizzard and comes with real drawbacks. They tend to be unstable, crash often, run old patches, and can be a security risk since you are installing someone else's client. If you want the full game, the free-to-20 trial is the sensible way to test it first.