<?php class a { protected $a = 10; protected $c;} class b { protected $b; public function setA($a){$this->b = $a;return $this;}} $q = (new b)->setA(new a); var_dump(unserialize(serialize($q), [true]));
You have javascript disabled. You will not be able to edit any code.