Might be a duplicate, but I never found an answer. I ran some basic tests with incrementing operator:
$i = 42;
$i > ++$i; # false
$i > $i++; # true
If the first comparison makes sense to me returning false, I can not figure out why the second returns true.
Even if it is pre or post incrementation, I would say both are false. How my variable can be strictly superior than its own incremented value?
Same tests with C and C++ show warnings but say false to both comparisons.