Notice that it is NOT 3, but the combined value of $a plus 3 (this is the value that's assigned into $a).
The following example should help you understand pre- and post-increment and expressions in general a bit better: