Try it Live
Run Opcode examples in the interactive playground
Opcode.isValid()
Check if byte value is a valid EVM opcode.- Functional API
Parameters
opcode: number- Byte value to check (0x00-0xFF)
Returns
boolean - True if valid EVM opcode
Valid Opcode Ranges
Defined Opcodes
Undefined Opcodes
Use Cases
Validate Bytecode
Find Invalid Opcodes
Safe Disassembly
Check Before Execution
Filter Valid Opcodes
Generate Opcode Table
Invalid Opcode Behavior
When executing invalid opcodes on the EVM:Performance
- O(1) lookup time
- Pre-computed validity table
- Zero allocation
- Very fast

