--TEST-- Object test --SKIPIF-- a = $a; $this->b = $b; $this->c = $c; } } $o = new Obj(1, 2, 3); test('object', $o, false); ?> --EXPECTF-- object 84c0a34f626aa16101a4002a006202a6004f626a006303 object(Obj)#%d (3) { ["a"]=> int(1) [%r"?b"?:protected"?%r]=> int(2) [%r"?c"?:("Obj":)?private"?%r]=> int(3) } OK