working alternative for variable classes on the cloud


since on the cloud we are prohibited to use certain classes or functions I was wondering how other people are working around a specific issue. We have certain functionality that uses variable classes. Since we can't use $class or Reflection we are bound to use 'factories'. Is there another way to instantiate classes in a way that is not blacklisted?