added php versions
better handling of circular arguments