--TEST-- GH-17200: Incorrect dynamic property offset --FILE-- $this->prop; } } $b = new B(); var_dump($b); echo json_encode($b), "\n"; ?> --EXPECTF-- object(B)#%d (1) { ["prop"]=> NULL } {"prop":null}