The GDB compiler / debugger works, as is shown on their online compiler site:
Online C Compiler - online editor[
^] - and it works for loads of languages!
Be aware though that you are running one heck of a risk if you aren't careful: part of the reason Javascript is so limited is to prevent malware running on client computers. What you are proposing would allow client malware to run on your server ... not a nice thought.