Add explain feature to php api