I didn't read all of the replies so I'm not sure if I'm being original here, but I'm gonna try anyway! There's an awesome cloud-based IDE that I use for my AP Computer Science class and for other various programming projects called Cloud9 (
https://c9.io/). It's a full virtual workspace online that can integrate with Github or Bitbucket for login, plus it has a fully functional Ubuntu terminal with sudo and internet access built in. It has a lot of run configurations that will automatically run whatever type of file you're programming (as long as it's a default supported one).
For example if you whip up a quick index.html with a little dinky page and hit run, it'll deploy your page and since you're working in your web browser and your terminal is connected to the internet, it will actually serve your page over the internet and give you a link to preview it.
If C9 doesn't support your preferred language but that language has a toolchain that can run in a linux terminal, you can hotfix to get that to work as well (surprisingly, Java isn't a built-in supported language, but it is installed as a linux terminal command by default, so I made a new run configuration that used javac followed by java consecutively to make my own improvised Java runtime (P.S. if any of you guys want, I can send you details on exactly how I did this)).
Oh, and since it's a web-app and cloud based, it has a collaboration feature almost identical to that of Google Drive where you can invite as many group members as you want and everybody can be working together at once.