I've pointed people there in the past, but I haven't actually used Why's try-out-ruby site before.
I don't know how he does it (using his sandbox perhaps?) but it's great.
10.times do |x| puts x ; end
"a man a plan a canal panama".reverse
(There's even a whole page dedicated to this palindrome here.