Opcodes · stack · enabled
OP_3DUP (0x6f)
Duplicates the top three items.
Verified
- Stack in → out
- a b c → a b c a b c
- Since
- Original Bitcoin script
- Cost
- Base instruction cost 100 plus bytes pushed (2025 VM limits).
- Bitcoin status
- Same in Bitcoin (BTC)
Example
OP_1 OP_2 OP_3 OP_3DUP Step through it opcode by opcode in Bitauth IDE, the in-browser BCH VM debugger.