Run Lua online — 5.1, 5.3, 5.4. Tiny, embeddable, browser-hosted.
Lua is a tiny, embeddable scripting language — under 300KB compiled — that has ended up inside your game engine, your NGINX plugin, your Redis scripts, your Wireshark dissectors, and (via LuaJIT) some very fast production systems.
ls-judge runs Lua with the reference `lua` interpreter. Choose 5.1 (LuaJIT-compatible), 5.3, or 5.4 (the latest, with integer subtype).
Clicking "Run now" opens the playground with this exact code and a matching test case pre-loaded — passes on first Run.
local n = tonumber(io.read())
print(n * 2)
21
42