Your program is executed on the server against a real Ruby interpreter, then standard output and any errors are sent back to your browser. That means the Ruby standard library (Enumerable, Hash, String, etc.) is available.
Write a plain Ruby script, just like a normal .rb file — no wrapping class or main method required. Whatever your script prints to standard output (via puts or print) shows up in the Output panel.
Execution is time-limited to keep the service responsive, and network access is restricted. Long-running, blocking, or excessively memory-hungry programs may be stopped and reported as timed out.
Yes. Click Share to copy a URL that encodes your current program, so anyone who opens the link sees the same code.
Chat opens an AI assistant embedded in the playground. It can explain Ruby concepts, debug errors, and write code directly into the editor, then run it to confirm it works.