Quantcast
Viewing all articles
Browse latest Browse all 6

Answer by scotts for How can I have a 64-bit integer in PHP?

Native 64-bit integers require 64-bit hardware AND the 64-bit version of PHP.

On 32-bit hardware:

$ php -r 'echo PHP_INT_MAX;'2147483647

On 64-bit hardware:

$ php -r 'echo PHP_INT_MAX;'9223372036854775807

Viewing all articles
Browse latest Browse all 6

Trending Articles