<?php
$a = 0;
echo "------------\n";
$a = 0;
echo "------------\n";
$a = 0;
$b = $a++;
$c = $a += 2;
echo "------------\n";
$a = 0;
$c = $a += 2;
$b = $a++;
//https://pt.stackoverflow.com/q/226847/101
PD9waHAKJGEgPSAwOwp2YXJfZHVtcCgkYSsrICsgKCRhICs9IDIpKTsKZWNobyAiLS0tLS0tLS0tLS0tXG4iOwokYSA9IDA7CnZhcl9kdW1wKCRhKysgKyAkYSArPSAyKTsKZWNobyAiLS0tLS0tLS0tLS0tXG4iOwokYSA9IDA7CiRiID0gJGErKzsKJGMgPSAkYSArPSAyOwp2YXJfZHVtcCgkYSwgJGIsICRjLCAkYiArICRjKTsKZWNobyAiLS0tLS0tLS0tLS0tXG4iOwokYSA9IDA7CiRjID0gJGEgKz0gMjsKJGIgPSAkYSsrOwp2YXJfZHVtcCgkYSwgJGIsICRjLCAkYiArICRjKTsKCi8vaHR0cHM6Ly9wdC5zdGFja292ZXJmbG93LmNvbS9xLzIyNjg0Ny8xMDE=