Skip to content
LogoLogo

Opcode & Gas Explorer

Guillotine Mini's interpreter loops over one opcode at a time: decode, check stack bounds, charge gas, mutate the frame. This explorer runs that same loop in your browser so you can watch every byte and every gas unit move.

Pick a preset or paste your own hex bytecode, then click Step. The highlighted row is the current program counter (PC); the right pane shows the live frame state.

Bytecode

000PUSH10x2a3g
002PUSH10x03g
004MSTORE3g
005PUSH10x203g
007PUSH10x03g
009RETURN
Gas used0
Gas left100,000
Memory0b

Stack (top first)

empty

The smallest interesting program: store 42 in memory, then return those 32 bytes. This is the sample on the front page.

What this explorer models

  • 256-bit stack, word-aligned memory, and slot storage — memory expands in 32-byte words and storage tracks warm/cold slots.
  • Dynamic gas — quadratic memory expansion ($3w + \lfloor w^2/512 \rfloor$), per-byte EXP surcharges, and EIP-2929 cold/warm SLOAD and SSTORE.
  • Real JUMPDEST analysis — 0x5b bytes inside PUSH immediates are rejected as jump targets, matching src/bytecode.zig.

What it omits

This widget is a visual reading aid, not a consensus engine. It covers arithmetic, comparison, bitwise, stack, memory, storage, jumps, and halting opcodes — it does not execute KECCAK256, environment/block opcodes, nested CALL/CREATE, precompiles, or gas refunds, and it prices SSTORE from the current value only, without EIP-2200 original-value (dirty slot) pricing.

To run full consensus execution right in your browser — with nested calls, linked crypto precompiles (SHA-256, BN254, BLS12-381, Osaka P256VERIFY), SVG gas flamegraphs, decoded reverts, and RPC transaction replay — open the Live WASM Playground & Debugger. You can also follow Tutorial 1: Your First Contract Call or Tutorial 4: Running in WebAssembly.