Online compiler

Run 40 languages from one page. HTML, CSS, JavaScript and JSON run instantly in your browser. Compiled languages run on an isolated server and usually take 1–2 seconds, since each submission is queued and compiled from scratch.

main.rbRuns on execution server
Output
Press Run to execute Ruby.

Ruby is compiled and run on an isolated execution server with no network access. Your code is not stored or linked to your account. Learn Ruby