debug of php function