Interesting: Xcode 4 is now available to any Mac user through the App Store for $4.99. (It’s free if you register for an Apple developer account and download it manually.)

Update: But, apparently you can no longer sign up for a free developer account, so other than the $4.99 version from the App Store, you need to spend at least $99 to get Xcode 4. I didn’t notice that there’s no longer a free tier for Apple developer accounts.

Update 2: No wonder I missed the discontinuation of free accounts: they were not discontinued. Sign up here; linked from here. But a free account only allows you access to Xcode 3. The only way to get Xcode 4 is to get a $99 account or buy it from the App Store for $4.99.