-1

When I calculate in php

print (2224516644% (pow (2,16) + 1));

the result is -5748.

While in the calculator the result is 59790

Why ? I need help

mega6382
  • 9,211
  • 17
  • 48
  • 69

1 Answers1

6

http://php.net/manual/en/reserved.constants.php Your value is higher than PHP_INT_MAX

  • It works fine for me : http://sandbox.onlinephpfunctions.com/code/fa815664126bd6a1a49c7750f3c24b5a21ac7c29 , I think it has to do with his host – teeyo Nov 06 '17 at 13:16