可变参考范围

class A {
  public $o;
  function __construct(&$o) {
    $this->o = $o;
  }
  function set($v) {
    $this->o["foo"] = $v;
  }
}

$o = ["hello" => "world"];
$a = new A($o);
$a->set(1);

echo json_encode($a->o)  // { "hello": "world", "foo": 1 }
echo json_encode($o)  // { "hello": "world" }

我必须怎么做才能使输出#2像输出#1一样?