I have a question regarding ** operator which has appeared in PHP 5.6. As far as I understand it, it is used for an exponentiation. However, if we want to increase a negative number:
var_dump(-2 ** 2);
var_dump(pow(-2, 2));
then in the first example the result is -4 and 4 in the second. Is it all right? Or this operator acts differently than pow() function?