Since Philipines is not among 33 countries that get Visa-on-arrival here, this would not have affected you anyway even if it was applied.
And yes, working in visit visa is illegal. You can find work with visit visa though and then company converts it into work visa.