<?php class Test { public $first; public $second; } $a = new Test; $a->first = "хуй"; $a->second = "пизда"; $a->third = "котик";
Standard input is empty
object(Test)#1 (2) { ["first"]=> NULL ["second"]=> NULL } object(Test)#1 (2) { ["first"]=> string(6) "хуй" ["second"]=> string(10) "пизда" } object(Test)#1 (3) { ["first"]=> string(6) "хуй" ["second"]=> string(10) "пизда" ["third"]=> string(10) "котик" }