I know it is cool to hate w3schools and I don't use it personally, but seriously, can we get over ourselves here?
The reason why w3schools rank highly and have done for years is because for a large segment of users it works.
And as someone else has pointed out the official documentation is often atrocious: both Python and Java online docs are close to worthless if you have a decent ide that shows you method signatures.
PHP docs used to be a lot better in that they described what was going on and why and had comment sections that I imagine they also used as feedback to improve the docs.
I haven't used PHP or Python for years but today there is Spring docs to drive me mad: telling me all the things I know and not telling me anything about how to interpret a Spring project.
Spring is infinitely flexible and there are more ways to configure Spring than there are Spring programmers since most of them can't even configure two projects the same way ;-)
They have user comments, which oftentimes contain the information and examples that are actually very important in day to day usage, as opposed to a cut and dry description by the language authors.
For example, go to this page and scroll down to "User Contributed Notes": https://www.php.net/manual/en/function.str-replace.php
To me, it feels like most of the technologies out there could benefit from user source and user voted content at the bottom of pages like this, the one thing that IDEs also don't provide (though if one were to throw in some fuzzy search from, say, StackOverflow, we could probably get context surrounding a particular bit of code).
See https://news.ycombinator.com/item?id=28927092 for a more descriptive example.
https://addons.mozilla.org/en-US/firefox/search/?q=w3schools
(Edit: that doesn't mean I necessarily trust or recommend niche extensions like these.)