My guess what is happening is that on windows machine you are are overflowing the maximum value that can be represented as a integer.
Check the value of PHP_INT_MAX on both environments (echo PHP_INT_MAX;
) The problem has probably less to do with windows vs linux and more to do with 32bit vs 64bit.