8 hexits = 32bit, which also allows us to forego having to check whether
it's over PHP_INT_MAX.
The substring is converted to an int since hex strings sometimes get
treated as ints if all digits are ints and this results in unexpected
sorting order.