On 32bit php, the PHP_INT_MAX (max integer value) is much lower, and causes problems. When looking online to get local laragon test server up, found old versions for windows archived here: https://windows.php.net/downloads/releases/archives/
Problem is, even those links ending x64, for example php-5.6.29-Win32-VC11-x64.zip is really not 64bit version, i tried running it, and if i echo the PHP_INT_MAX value, i can clearly see it is 32bit mode, bc PHP_INT_SIZE is only 2147483647
Is there an actual real 64bit php 5.6 for windows? I know there is a linux version because i have one running on one linux server, but need to have one up on local windows pc. I know there is a way to use wsl or virtual ubuntu etc, but really woul dlove to work right from windows..
Any ideas anyone?
The following statement misses from the current PHP documentation page about integers but it was present back in the days when PHP 5 was the most recent version:
64-bit platforms usually have a maximum value of about 9E18, except on Windows prior to PHP 7, where it was always 32 bit.
I could find it in the documentation of PHP 5. There are links to the documentation of previous versions of PHP on the bottom of the documentation start page.
I would say that the only solution to your problem is to upgrade PHP to version 7 or, even better, to the most recent version (8.2). Or use Linux for development (it is much better than Windows for web development). Or both.