It performs almost the same function. Invertebrates have nephridiums, while vertebrates have nephrons in their kidneys.