[php] let daff know that it can relax about string conversion in php
inline some parts of IndexItem for performance