dev.code.execute
Execute source code securely in a sandboxed environment supporting 71+ programming languages. Returns execution results including stdout, stderr, time, and memory usage with configurable CPU and memory limits.
Instructions
Execute source code in a sandboxed environment — 71 programming languages supported (Python, JavaScript, Java, C++, Go, Rust, C#, Bash, Ruby, PHP, and 60+ more). Returns stdout, stderr, execution time, and memory usage. Safe sandboxed execution with CPU/memory limits. Use code.languages to get language IDs (Judge0 CE)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| language_id | Yes | Language ID from code.languages (e.g. 71=Python 3, 63=JavaScript, 62=Java, 54=C++, 60=Go, 73=Rust, 51=C#, 46=Bash). Call code.languages for full list | |
| source_code | Yes | Source code to execute | |
| stdin | No | Standard input to feed to the program | |
| cpu_time_limit | No | CPU time limit in seconds (default 5, max 15) | |
| memory_limit | No | Memory limit in KB (default 128000 = 128MB) |