Answer by Anatol Belski for How can I have a 64-bit integer in PHP?
Now you should get PHP 7 - fully consistent 64-bit support. Not only integers, but also all the fstat, I/O, etc. PHP 7 on Windows is true 64-bit.
View ArticleAnswer by tmont for How can I have a 64-bit integer in PHP?
UPDATE: It does now (tested on AMD quad core, Windows 8.1).Note that PHP on Windows does not support 64-bit integers at all, even if both the hardware and PHP are 64-bit. See this link for details:On...
View ArticleAnswer 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;'2147483647On 64-bit hardware:$ php -r 'echo PHP_INT_MAX;'9223372036854775807
View ArticleAnswer by Milen A. Radev for How can I have a 64-bit integer in PHP?
Maybe you could use either the GMP or BCMath extension.
View ArticleAnswer by Josh Curren for How can I have a 64-bit integer in PHP?
PHP int size is platform-dependent. There is a function called unpack() which essentially allows to convert different types of data from binary strings to PHP variables. It seems to be the only way to...
View ArticleHow can I have a 64-bit integer in PHP?
How can I have a 64-bit integer in PHP?It seems like it is not by a config file, but rather it might be a compile-time option, and it depends on the platform.
View Article