in reply to $i=$i++

I've come across much the same conundra in C. However, in the case of C, there was one instance that was platform dependent. It involved subscripts. Here is the snippet if I remember it correctly:
array[i++] = array[i++] + i;
I actually found this in a piece of application code. Horrid, isn't it.

What would the perl equivalent do? I guess it would be consistent across platforms, since perl evaluates expressions in the same order on all platforms.