For PHP you only need a run-of-the-mill sub-$1/month webspace provider and FTP. And that also gives you a way to share your projects with friends.
For JavaScript you only need a browser.
I think PHP is harmful and should never be a first language.
JavaScript is getting good enough to be a good first choice, though, and it is very easy to get up and running with.
>Because that's not the case for Python or PHP on linux too? I bet it is,and it has nothing to do with the language itself.
I don't know about PHP, but the Python situation is very workable. It's basically just 2 or 3, and you can write code that is portable between them, or better yet - it's not difficult to only use python 3.