This is a short one. Basically if you need to deal with timestamps, beware. The value of a timestamp in
integer a 32bit PHP installation can produce.
JS microtime: 1392804671000 PHP max int on 32bit: 2147483647 PHP max int on 64bit: 9223372036854775807
sprintf( '%u', $number ); will give you a
”The size of an integer is platform-dependent, although a maximum value of about two billion is the usual value (that's 32 bits signed). 64-bit platforms usually have a maximum value of about 9E18. PHP does not support unsigned integers.“ PHP Docs on Integer
”32-bit builds of PHP: from -2147483648 to 2147483647. 64-bit builds of PHP: from -9223372036854775808 to 9223372036854775807“ Obligatory SO answer