It looks like in this particular case, $this->$x should be sufficient.
Otherwise, you may have to split up x into $x_object and $x_name
(exploding by -> should be sufficient) and calling $x_object->$x_name.
What you currently have, however, cannot be done.