dawwinci/ic81dump-opcodes ? reverse-engineered prompt

Reverse engineered prompt

Build me a Windows tool that can dump the real opcodes from ionCube encoded PHP 8.1 files and save them as both JSON and a readable text file.

I want it to work from the command line, so I can point it at one file or several files and get something.opcodes.json and something.opcodes.txt next to each input. It should use the bundled runtime in this repo, load the extension correctly, and handle encoded files by capturing the full function, class, method, closure, literal, jump, and metadata information it can recover. The JSON should be the main output, and the text file can be a cleaned up version for humans to read.

Please make the build and dump scripts work smoothly on the included setup, and wire everything together so the whole flow is easy to run from a fresh checkout. If you need to check current docs or details for PHP internals, feel free to look them up online.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab