Php increasing problem

clipboard.png
Why does it output 7 here? my understanding is that $aPP is calculated first and then assigned, so it should be output 6. How can it be 7?

Php
Apr.24,2021

$a + $aPP execute $aPP first, and $an is pushed into the stack with a value of 3. Then $a becomes 4 after the PP operation, and a with a value of 4 is pressed into the stack.
then use the two values in the stack to perform the addition operation, resulting in 7
schematic

$a(3)  ->   $a(4) ->  4 + 3

you can see that the previous $an is 4, and the latter $an is 3

.

self-operation priority, self-operation priority

Menu