Loading Erlang Workspace...
Zero-Setup In-Browser Runtime • Version Erlang/OTP 26

🔴Erlang Online Compiler & Interactive IDE

Erlang is a general-purpose, concurrent, functional programming language designed for massive scale and fault-tolerant telecom backends.

Standard Input (STDIN) Stream in Erlang

Interactive Console

Erlang reads lines with `io:get_line("")`.

-module(solution). -export([start/0]). factorial(0) -> 1; factorial(N) when N > 0 -> N * factorial(N - 1). start() -> io:format("=== Erlang OTP Online Compiler ===~n"), Result = factorial(6), io:format("Factorial of 6 is ~p~n", [Result]), io:format("Status: Erlang executed successfully!~n").

Erlang Syntax Reference & Core Patterns

Pattern Matching

Functions use pattern matching on arguments.

area({circle, R}) -> 3.14 * R * R;

Frequently Asked Questions

Is OmniCompiler's Erlang online compiler completely free?

Yes. You can write, compile, execute, test, and share Erlang programs completely free with no software installation or registration required.

How fast is the execution on OmniCompiler?

Code executes in high-performance isolated sandboxes with low compilation latency, outputting stdout and execution metrics in milliseconds.

Can I share my code and test cases with others?

Yes. Click the Share button in the navigation bar to generate a persistent link that encapsulates your code, files, and STDIN inputs for seamless collaboration.