rewrite write_longlong

Similar to #104, we can avoid chrbytesplit/bytesplit on 64bits platform, or with the smaller values.

With bigger values like 994294967296, unit test was failing on a 32 bits platform.

This is why we test if $n <= PHP_INT_MAX before using the optimised code.