Searching for it I found this blog post: https://www.npopov.com/2017/04/14/PHP-7-Virtual-machine.html
Does it cover "everything" needed to add a new opcode, or all the places I'd need to touch in the engine? Or is it better to just start grepping in the code-base? Maybe there's a commit that can be used as a prototype or example?
Edit, last opcode added was this: https://github.com/php/php-src/pull/7019/files#diff-773bdb31563a0f907c75068675f6056b25f003e61f46928a31d9837ae107460d