The time tested answer is to ask those that have been their.
Hit up ideone.com and such to ask how they did it. What you may need to know is that it's more than scripts. There's a heave backend of servers and one more thing. Ready?
This was done by a team. Sometimes you find a lone programmer trying to do such a thing.
Hi Everyone!
I 've some problem. I want to create online IDE or code tester. But I don't know how I can create it.... I want to create such as ideone.com or such as other popular online ide. But My knowledge is not enough for create it! How I can create it? Please help me!
I can't create at the time. I said that My knowledge is not enough for do it... So Can I find such as scripts?
Thanks all answers!...

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic