note 97399 deleted from language.types.object by danbrown

From: Date: Sun, 18 Apr 2010 02:41:59 +0000
Subject: note 97399 deleted from language.types.object by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-168362@lists.php.net to get a copy of this message
Note Submitter: effim.com ---- Plan on creating a lot of instances of a stdClass object? You've got several ways… <? $foo = new stdClass; $foo = (object) null; $foo->bar = null; ?> The first and second are equally as fast. The third, however, is about 15 times faster. Interestingly, $foo = (object); and $foo->bar; are much slower.

« previous php.notes (#168362) next »