Solidity REPL
Debugging & errors

Array bounds panic

Read beyond a memory array and inspect Solidity panic code 0x32.

Solidity 0.8.36REPL modeExpected error

Why use this example

Use this pattern to reproduce a failure or follow an execution from Solidity source into calls and EVM opcodes. The entry isolates array bounds panic so its input, result, and state changes stay easy to compare.

Solidity to run

uint256[] memory values = new uint256[](1)
values[1]

Official Solidity reference

Compare this focused investigation with the complete language definition in the Solidity documentation.

Panic error codes

What to expect

Reading index 1 from a one-item array triggers Solidity panic code 0x32 and leaves accepted history unchanged.

Continue the investigation

Change a value, add another expression, or open Inspect after the run. Accepted entries remain available to the next entry, and the clean replay keeps the complete result reproducible.

Read about debugging Execution diagnosis