How planet forms in different stellar environment?