My opinion: legal.
Hmm, would you please tell me why? I want to know as if it's legal I will start coding the website on the spot.
I would say it depends on the TOS of the company your making these accounts on. I have not read the TOS of any of them but I'm guessing creating bulk accounts automated is against their TOS.