PHP - Base 2, 8, 16, 62, N Conversion