reference: https://nikic.github.io/2012/02/02/Pointer-magic-for-efficient-dynamic-value-representations.html