<8> = f85;p;s;_
85 = mv field of payment ids applied to this invoice
p = pop a copy onto the stack
s = sum
_ = swap stack 1 & 2
... this returns that last value from field 85, i.e. the last payment id in the mv list
Although now that we have the "call" processing code (attribute 8 from dict item) you can do this in a way that later, anyone will understand what is happening.
There are lots of these that exploit what were probably originally bugs; best relegated to the dust bin as undocumented tricks.
/Scott Ballinger