added php test code