3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php abstract class Catalog_Model_DbSelect_Abstract { /** All created instances so far */ protected static $_instances = array(); protected $property; /** * Gets the singleton of a select statement * @param array|string $args The arguments arguments that are needed to build the select (e.g. attribute set names, product types). * @return Catalog_Model_DbSelect_Abstract The select instance */ public static function getInstance($args = null) { $class = get_called_class(); $key = $class . (is_array($args) ? implode('_', $args) : $args); if (!array_key_exists($key, static::$_instances)) { static::$_instances[$key] = new $class($args); } return clone static::$_instances[$key]; } public function setProperty($property) { $this->property=$property;} public function getProperty() { return $this->property;} } class DerivedClass1 extends Catalog_Model_DbSelect_Abstract {} class DerivedClass2 extends Catalog_Model_DbSelect_Abstract {} class DerivedClass3 extends Catalog_Model_DbSelect_Abstract {} class DerivedClass4 extends Catalog_Model_DbSelect_Abstract {} class DerivedClass5 extends Catalog_Model_DbSelect_Abstract {} class DerivedClass6 extends Catalog_Model_DbSelect_Abstract {} class DerivedClass7 extends Catalog_Model_DbSelect_Abstract {} class DerivedClass8 extends Catalog_Model_DbSelect_Abstract {} class DerivedClass9 extends Catalog_Model_DbSelect_Abstract {} $mem = memory_get_usage(); for ($classI = 1; $classI < 10; $classI++) { for ($argsI = 1; $argsI < 20; $argsI++) { for ($varnameI = 1; $varnameI < 20; $varnameI++) { $classname = 'DerivedClass' . $classI; $varname = 'instance' . $varnameI; $args = 'foo' . $argsI; $$varname = $classname::getInstance($args); echo 'called ' . $classname . '::getInstance(' . $args . ')' . PHP_EOL; echo 'memory usage: ' . (memory_get_usage() - $mem) . PHP_EOL; } } }
Output for 7.0.20 - 7.2.0
called DerivedClass1::getInstance(foo1) memory usage: 624 called DerivedClass1::getInstance(foo1) memory usage: 720 called DerivedClass1::getInstance(foo1) memory usage: 816 called DerivedClass1::getInstance(foo1) memory usage: 912 called DerivedClass1::getInstance(foo1) memory usage: 1008 called DerivedClass1::getInstance(foo1) memory usage: 1104 called DerivedClass1::getInstance(foo1) memory usage: 1200 called DerivedClass1::getInstance(foo1) memory usage: 1296 called DerivedClass1::getInstance(foo1) memory usage: 1392 called DerivedClass1::getInstance(foo1) memory usage: 1488 called DerivedClass1::getInstance(foo1) memory usage: 1584 called DerivedClass1::getInstance(foo1) memory usage: 1680 called DerivedClass1::getInstance(foo1) memory usage: 1776 called DerivedClass1::getInstance(foo1) memory usage: 1872 called DerivedClass1::getInstance(foo1) memory usage: 1968 called DerivedClass1::getInstance(foo1) memory usage: 2064 called DerivedClass1::getInstance(foo1) memory usage: 2160 called DerivedClass1::getInstance(foo1) memory usage: 2256 called DerivedClass1::getInstance(foo1) memory usage: 2352 called DerivedClass1::getInstance(foo2) memory usage: 2496 called DerivedClass1::getInstance(foo2) memory usage: 2496 called DerivedClass1::getInstance(foo2) memory usage: 2496 called DerivedClass1::getInstance(foo2) memory usage: 2496 called DerivedClass1::getInstance(foo2) memory usage: 2496 called DerivedClass1::getInstance(foo2) memory usage: 2496 called DerivedClass1::getInstance(foo2) memory usage: 2496 called DerivedClass1::getInstance(foo2) memory usage: 2496 called DerivedClass1::getInstance(foo2) memory usage: 2496 called DerivedClass1::getInstance(foo2) memory usage: 2496 called DerivedClass1::getInstance(foo2) memory usage: 2496 called DerivedClass1::getInstance(foo2) memory usage: 2496 called DerivedClass1::getInstance(foo2) memory usage: 2496 called DerivedClass1::getInstance(foo2) memory usage: 2496 called DerivedClass1::getInstance(foo2) memory usage: 2496 called DerivedClass1::getInstance(foo2) memory usage: 2496 called DerivedClass1::getInstance(foo2) memory usage: 2496 called DerivedClass1::getInstance(foo2) memory usage: 2496 called DerivedClass1::getInstance(foo2) memory usage: 2496 called DerivedClass1::getInstance(foo3) memory usage: 2600 called DerivedClass1::getInstance(foo3) memory usage: 2600 called DerivedClass1::getInstance(foo3) memory usage: 2600 called DerivedClass1::getInstance(foo3) memory usage: 2600 called DerivedClass1::getInstance(foo3) memory usage: 2600 called DerivedClass1::getInstance(foo3) memory usage: 2600 called DerivedClass1::getInstance(foo3) memory usage: 2600 called DerivedClass1::getInstance(foo3) memory usage: 2600 called DerivedClass1::getInstance(foo3) memory usage: 2600 called DerivedClass1::getInstance(foo3) memory usage: 2600 called DerivedClass1::getInstance(foo3) memory usage: 2600 called DerivedClass1::getInstance(foo3) memory usage: 2600 called DerivedClass1::getInstance(foo3) memory usage: 2600 called DerivedClass1::getInstance(foo3) memory usage: 2600 called DerivedClass1::getInstance(foo3) memory usage: 2600 called DerivedClass1::getInstance(foo3) memory usage: 2600 called DerivedClass1::getInstance(foo3) memory usage: 2600 called DerivedClass1::getInstance(foo3) memory usage: 2600 called DerivedClass1::getInstance(foo3) memory usage: 2600 called DerivedClass1::getInstance(foo4) memory usage: 2704 called DerivedClass1::getInstance(foo4) memory usage: 2704 called DerivedClass1::getInstance(foo4) memory usage: 2704 called DerivedClass1::getInstance(foo4) memory usage: 2704 called DerivedClass1::getInstance(foo4) memory usage: 2704 called DerivedClass1::getInstance(foo4) memory usage: 2704 called DerivedClass1::getInstance(foo4) memory usage: 2704 called DerivedClass1::getInstance(foo4) memory usage: 2704 called DerivedClass1::getInstance(foo4) memory usage: 2704 called DerivedClass1::getInstance(foo4) memory usage: 2704 called DerivedClass1::getInstance(foo4) memory usage: 2704 called DerivedClass1::getInstance(foo4) memory usage: 2704 called DerivedClass1::getInstance(foo4) memory usage: 2704 called DerivedClass1::getInstance(foo4) memory usage: 2704 called DerivedClass1::getInstance(foo4) memory usage: 2704 called DerivedClass1::getInstance(foo4) memory usage: 2704 called DerivedClass1::getInstance(foo4) memory usage: 2704 called DerivedClass1::getInstance(foo4) memory usage: 2704 called DerivedClass1::getInstance(foo4) memory usage: 2704 called DerivedClass1::getInstance(foo5) memory usage: 2808 called DerivedClass1::getInstance(foo5) memory usage: 2808 called DerivedClass1::getInstance(foo5) memory usage: 2808 called DerivedClass1::getInstance(foo5) memory usage: 2808 called DerivedClass1::getInstance(foo5) memory usage: 2808 called DerivedClass1::getInstance(foo5) memory usage: 2808 called DerivedClass1::getInstance(foo5) memory usage: 2808 called DerivedClass1::getInstance(foo5) memory usage: 2808 called DerivedClass1::getInstance(foo5) memory usage: 2808 called DerivedClass1::getInstance(foo5) memory usage: 2808 called DerivedClass1::getInstance(foo5) memory usage: 2808 called DerivedClass1::getInstance(foo5) memory usage: 2808 called DerivedClass1::getInstance(foo5) memory usage: 2808 called DerivedClass1::getInstance(foo5) memory usage: 2808 called DerivedClass1::getInstance(foo5) memory usage: 2808 called DerivedClass1::getInstance(foo5) memory usage: 2808 called DerivedClass1::getInstance(foo5) memory usage: 2808 called DerivedClass1::getInstance(foo5) memory usage: 2808 called DerivedClass1::getInstance(foo5) memory usage: 2808 called DerivedClass1::getInstance(foo6) memory usage: 2912 called DerivedClass1::getInstance(foo6) memory usage: 2912 called DerivedClass1::getInstance(foo6) memory usage: 2912 called DerivedClass1::getInstance(foo6) memory usage: 2912 called DerivedClass1::getInstance(foo6) memory usage: 2912 called DerivedClass1::getInstance(foo6) memory usage: 2912 called DerivedClass1::getInstance(foo6) memory usage: 2912 called DerivedClass1::getInstance(foo6) memory usage: 2912 called DerivedClass1::getInstance(foo6) memory usage: 2912 called DerivedClass1::getInstance(foo6) memory usage: 2912 called DerivedClass1::getInstance(foo6) memory usage: 2912 called DerivedClass1::getInstance(foo6) memory usage: 2912 called DerivedClass1::getInstance(foo6) memory usage: 2912 called DerivedClass1::getInstance(foo6) memory usage: 2912 called DerivedClass1::getInstance(foo6) memory usage: 2912 called DerivedClass1::getInstance(foo6) memory usage: 2912 called DerivedClass1::getInstance(foo6) memory usage: 2912 called DerivedClass1::getInstance(foo6) memory usage: 2912 called DerivedClass1::getInstance(foo6) memory usage: 2912 called DerivedClass1::getInstance(foo7) memory usage: 3016 called DerivedClass1::getInstance(foo7) memory usage: 3016 called DerivedClass1::getInstance(foo7) memory usage: 3016 called DerivedClass1::getInstance(foo7) memory usage: 3016 called DerivedClass1::getInstance(foo7) memory usage: 3016 called DerivedClass1::getInstance(foo7) memory usage: 3016 called DerivedClass1::getInstance(foo7) memory usage: 3016 called DerivedClass1::getInstance(foo7) memory usage: 3016 called DerivedClass1::getInstance(foo7) memory usage: 3016 called DerivedClass1::getInstance(foo7) memory usage: 3016 called DerivedClass1::getInstance(foo7) memory usage: 3016 called DerivedClass1::getInstance(foo7) memory usage: 3016 called DerivedClass1::getInstance(foo7) memory usage: 3016 called DerivedClass1::getInstance(foo7) memory usage: 3016 called DerivedClass1::getInstance(foo7) memory usage: 3016 called DerivedClass1::getInstance(foo7) memory usage: 3016 called DerivedClass1::getInstance(foo7) memory usage: 3016 called DerivedClass1::getInstance(foo7) memory usage: 3016 called DerivedClass1::getInstance(foo7) memory usage: 3016 called DerivedClass1::getInstance(foo8) memory usage: 3120 called DerivedClass1::getInstance(foo8) memory usage: 3120 called DerivedClass1::getInstance(foo8) memory usage: 3120 called DerivedClass1::getInstance(foo8) memory usage: 3120 called DerivedClass1::getInstance(foo8) memory usage: 3120 called DerivedClass1::getInstance(foo8) memory usage: 3120 called DerivedClass1::getInstance(foo8) memory usage: 3120 called DerivedClass1::getInstance(foo8) memory usage: 3120 called DerivedClass1::getInstance(foo8) memory usage: 3120 called DerivedClass1::getInstance(foo8) memory usage: 3120 called DerivedClass1::getInstance(foo8) memory usage: 3120 called DerivedClass1::getInstance(foo8) memory usage: 3120 called DerivedClass1::getInstance(foo8) memory usage: 3120 called DerivedClass1::getInstance(foo8) memory usage: 3120 called DerivedClass1::getInstance(foo8) memory usage: 3120 called DerivedClass1::getInstance(foo8) memory usage: 3120 called DerivedClass1::getInstance(foo8) memory usage: 3120 called DerivedClass1::getInstance(foo8) memory usage: 3120 called DerivedClass1::getInstance(foo8) memory usage: 3120 called DerivedClass1::getInstance(foo9) memory usage: 3544 called DerivedClass1::getInstance(foo9) memory usage: 3544 called DerivedClass1::getInstance(foo9) memory usage: 3544 called DerivedClass1::getInstance(foo9) memory usage: 3544 called DerivedClass1::getInstance(foo9) memory usage: 3544 called DerivedClass1::getInstance(foo9) memory usage: 3544 called DerivedClass1::getInstance(foo9) memory usage: 3544 called DerivedClass1::getInstance(foo9) memory usage: 3544 called DerivedClass1::getInstance(foo9) memory usage: 3544 called DerivedClass1::getInstance(foo9) memory usage: 3544 called DerivedClass1::getInstance(foo9) memory usage: 3544 called DerivedClass1::getInstance(foo9) memory usage: 3544 called DerivedClass1::getInstance(foo9) memory usage: 3544 called DerivedClass1::getInstance(foo9) memory usage: 3544 called DerivedClass1::getInstance(foo9) memory usage: 3544 called DerivedClass1::getInstance(foo9) memory usage: 3544 called DerivedClass1::getInstance(foo9) memory usage: 3544 called DerivedClass1::getInstance(foo9) memory usage: 3544 called DerivedClass1::getInstance(foo9) memory usage: 3544 called DerivedClass1::getInstance(foo10) memory usage: 3648 called DerivedClass1::getInstance(foo10) memory usage: 3648 called DerivedClass1::getInstance(foo10) memory usage: 3648 called DerivedClass1::getInstance(foo10) memory usage: 3648 called DerivedClass1::getInstance(foo10) memory usage: 3648 called DerivedClass1::getInstance(foo10) memory usage: 3648 called DerivedClass1::getInstance(foo10) memory usage: 3648 called DerivedClass1::getInstance(foo10) memory usage: 3648 called DerivedClass1::getInstance(foo10) memory usage: 3648 called DerivedClass1::getInstance(foo10) memory usage: 3648 called DerivedClass1::getInstance(foo10) memory usage: 3648 called DerivedClass1::getInstance(foo10) memory usage: 3648 called DerivedClass1::getInstance(foo10) memory usage: 3648 called DerivedClass1::getInstance(foo10) memory usage: 3648 called DerivedClass1::getInstance(foo10) memory usage: 3648 called DerivedClass1::getInstance(foo10) memory usage: 3648 called DerivedClass1::getInstance(foo10) memory usage: 3648 called DerivedClass1::getInstance(foo10) memory usage: 3648 called DerivedClass1::getInstance(foo10) memory usage: 3648 called DerivedClass1::getInstance(foo11) memory usage: 3752 called DerivedClass1::getInstance(foo11) memory usage: 3752 called DerivedClass1::getInstance(foo11) memory usage: 3752 called DerivedClass1::getInstance(foo11) memory usage: 3752 called DerivedClass1::getInstance(foo11) memory usage: 3752 called DerivedClass1::getInstance(foo11) memory usage: 3752 called DerivedClass1::getInstance(foo11) memory usage: 3752 called DerivedClass1::getInstance(foo11) memory usage: 3752 called DerivedClass1::getInstance(foo11) memory usage: 3752 called DerivedClass1::getInstance(foo11) memory usage: 3752 called DerivedClass1::getInstance(foo11) memory usage: 3752 called DerivedClass1::getInstance(foo11) memory usage: 3752 called DerivedClass1::getInstance(foo11) memory usage: 3752 called DerivedClass1::getInstance(foo11) memory usage: 3752 called DerivedClass1::getInstance(foo11) memory usage: 3752 called DerivedClass1::getInstance(foo11) memory usage: 3752 called DerivedClass1::getInstance(foo11) memory usage: 3752 called DerivedClass1::getInstance(foo11) memory usage: 3752 called DerivedClass1::getInstance(foo11) memory usage: 3752 called DerivedClass1::getInstance(foo12) memory usage: 3856 called DerivedClass1::getInstance(foo12) memory usage: 3856 called DerivedClass1::getInstance(foo12) memory usage: 3856 called DerivedClass1::getInstance(foo12) memory usage: 3856 called DerivedClass1::getInstance(foo12) memory usage: 3856 called DerivedClass1::getInstance(foo12) memory usage: 3856 called DerivedClass1::getInstance(foo12) memory usage: 3856 called DerivedClass1::getInstance(foo12) memory usage: 3856 called DerivedClass1::getInstance(foo12) memory usage: 3856 called DerivedClass1::getInstance(foo12) memory usage: 3856 called DerivedClass1::getInstance(foo12) memory usage: 3856 called DerivedClass1::getInstance(foo12) memory usage: 3856 called DerivedClass1::getInstance(foo12) memory usage: 3856 called DerivedClass1::getInstance(foo12) memory usage: 3856 called DerivedClass1::getInstance(foo12) memory usage: 3856 called DerivedClass1::getInstance(foo12) memory usage: 3856 called DerivedClass1::getInstance(foo12) memory usage: 3856 called DerivedClass1::getInstance(foo12) memory usage: 3856 called DerivedClass1::getInstance(foo12) memory usage: 3856 called DerivedClass1::getInstance(foo13) memory usage: 3960 called DerivedClass1::getInstance(foo13) memory usage: 3960 called DerivedClass1::getInstance(foo13) memory usage: 3960 called DerivedClass1::getInstance(foo13) memory usage: 3960 called DerivedClass1::getInstance(foo13) memory usage: 3960 called DerivedClass1::getInstance(foo13) memory usage: 3960 called DerivedClass1::getInstance(foo13) memory usage: 3960 called DerivedClass1::getInstance(foo13) memory usage: 3960 called DerivedClass1::getInstance(foo13) memory usage: 3960 called DerivedClass1::getInstance(foo13) memory usage: 3960 called DerivedClass1::getInstance(foo13) memory usage: 3960 called DerivedClass1::getInstance(foo13) memory usage: 3960 called DerivedClass1::getInstance(foo13) memory usage: 3960 called DerivedClass1::getInstance(foo13) memory usage: 3960 called DerivedClass1::getInstance(foo13) memory usage: 3960 called DerivedClass1::getInstance(foo13) memory usage: 3960 called DerivedClass1::getInstance(foo13) memory usage: 3960 called DerivedClass1::getInstance(foo13) memory usage: 3960 called DerivedClass1::getInstance(foo13) memory usage: 3960 called DerivedClass1::getInstance(foo14) memory usage: 4064 called DerivedClass1::getInstance(foo14) memory usage: 4064 called DerivedClass1::getInstance(foo14) memory usage: 4064 called DerivedClass1::getInstance(foo14) memory usage: 4064 called DerivedClass1::getInstance(foo14) memory usage: 4064 called DerivedClass1::getInstance(foo14) memory usage: 4064 called DerivedClass1::getInstance(foo14) memory usage: 4064 called DerivedClass1::getInstance(foo14) memory usage: 4064 called DerivedClass1::getInstance(foo14) memory usage: 4064 called DerivedClass1::getInstance(foo14) memory usage: 4064 called DerivedClass1::getInstance(foo14) memory usage: 4064 called DerivedClass1::getInstance(foo14) memory usage: 4064 called DerivedClass1::getInstance(foo14) memory usage: 4064 called DerivedClass1::getInstance(foo14) memory usage: 4064 called DerivedClass1::getInstance(foo14) memory usage: 4064 called DerivedClass1::getInstance(foo14) memory usage: 4064 called DerivedClass1::getInstance(foo14) memory usage: 4064 called DerivedClass1::getInstance(foo14) memory usage: 4064 called DerivedClass1::getInstance(foo14) memory usage: 4064 called DerivedClass1::getInstance(foo15) memory usage: 4168 called DerivedClass1::getInstance(foo15) memory usage: 4168 called DerivedClass1::getInstance(foo15) memory usage: 4168 called DerivedClass1::getInstance(foo15) memory usage: 4168 called DerivedClass1::getInstance(foo15) memory usage: 4168 called DerivedClass1::getInstance(foo15) memory usage: 4168 called DerivedClass1::getInstance(foo15) memory usage: 4168 called DerivedClass1::getInstance(foo15) memory usage: 4168 called DerivedClass1::getInstance(foo15) memory usage: 4168 called DerivedClass1::getInstance(foo15) memory usage: 4168 called DerivedClass1::getInstance(foo15) memory usage: 4168 called DerivedClass1::getInstance(foo15) memory usage: 4168 called DerivedClass1::getInstance(foo15) memory usage: 4168 called DerivedClass1::getInstance(foo15) memory usage: 4168 called DerivedClass1::getInstance(foo15) memory usage: 4168 called DerivedClass1::getInstance(foo15) memory usage: 4168 called DerivedClass1::getInstance(foo15) memory usage: 4168 called DerivedClass1::getInstance(foo15) memory usage: 4168 called DerivedClass1::getInstance(foo15) memory usage: 4168 called DerivedClass1::getInstance(foo16) memory usage: 4272 called DerivedClass1::getInstance(foo16) memory usage: 4272 called DerivedClass1::getInstance(foo16) memory usage: 4272 called DerivedClass1::getInstance(foo16) memory usage: 4272 called DerivedClass1::getInstance(foo16) memory usage: 4272 called DerivedClass1::getInstance(foo16) memory usage: 4272 called DerivedClass1::getInstance(foo16) memory usage: 4272 called DerivedClass1::getInstance(foo16) memory usage: 4272 called DerivedClass1::getInstance(foo16) memory usage: 4272 called DerivedClass1::getInstance(foo16) memory usage: 4272 called DerivedClass1::getInstance(foo16) memory usage: 4272 called DerivedClass1::getInstance(foo16) memory usage: 4272 called DerivedClass1::getInstance(foo16) memory usage: 4272 called DerivedClass1::getInstance(foo16) memory usage: 4272 called DerivedClass1::getInstance(foo16) memory usage: 4272 called DerivedClass1::getInstance(foo16) memory usage: 4272 called DerivedClass1::getInstance(foo16) memory usage: 4272 called DerivedClass1::getInstance(foo16) memory usage: 4272 called DerivedClass1::getInstance(foo16) memory usage: 4272 called DerivedClass1::getInstance(foo17) memory usage: 5016 called DerivedClass1::getInstance(foo17) memory usage: 5016 called DerivedClass1::getInstance(foo17) memory usage: 5016 called DerivedClass1::getInstance(foo17) memory usage: 5016 called DerivedClass1::getInstance(foo17) memory usage: 5016 called DerivedClass1::getInstance(foo17) memory usage: 5016 called DerivedClass1::getInstance(foo17) memory usage: 5016 called DerivedClass1::getInstance(foo17) memory usage: 5016 called DerivedClass1::getInstance(foo17) memory usage: 5016 called DerivedClass1::getInstance(foo17) memory usage: 5016 called DerivedClass1::getInstance(foo17) memory usage: 5016 called DerivedClass1::getInstance(foo17) memory usage: 5016 called DerivedClass1::getInstance(foo17) memory usage: 5016 called DerivedClass1::getInstance(foo17) memory usage: 5016 called DerivedClass1::getInstance(foo17) memory usage: 5016 called DerivedClass1::getInstance(foo17) memory usage: 5016 called DerivedClass1::getInstance(foo17) memory usage: 5016 called DerivedClass1::getInstance(foo17) memory usage: 5016 called DerivedClass1::getInstance(foo17) memory usage: 5016 called DerivedClass1::getInstance(foo18) memory usage: 5120 called DerivedClass1::getInstance(foo18) memory usage: 5120 called DerivedClass1::getInstance(foo18) memory usage: 5120 called DerivedClass1::getInstance(foo18) memory usage: 5120 called DerivedClass1::getInstance(foo18) memory usage: 5120 called DerivedClass1::getInstance(foo18) memory usage: 5120 called DerivedClass1::getInstance(foo18) memory usage: 5120 called DerivedClass1::getInstance(foo18) memory usage: 5120 called DerivedClass1::getInstance(foo18) memory usage: 5120 called DerivedClass1::getInstance(foo18) memory usage: 5120 called DerivedClass1::getInstance(foo18) memory usage: 5120 called DerivedClass1::getInstance(foo18) memory usage: 5120 called DerivedClass1::getInstance(foo18) memory usage: 5120 called DerivedClass1::getInstance(foo18) memory usage: 5120 called DerivedClass1::getInstance(foo18) memory usage: 5120 called DerivedClass1::getInstance(foo18) memory usage: 5120 called DerivedClass1::getInstance(foo18) memory usage: 5120 called DerivedClass1::getInstance(foo18) memory usage: 5120 called DerivedClass1::getInstance(foo18) memory usage: 5120 called DerivedClass1::getInstance(foo19) memory usage: 5224 called DerivedClass1::getInstance(foo19) memory usage: 5224 called DerivedClass1::getInstance(foo19) memory usage: 5224 called DerivedClass1::getInstance(foo19) memory usage: 5224 called DerivedClass1::getInstance(foo19) memory usage: 5224 called DerivedClass1::getInstance(foo19) memory usage: 5224 called DerivedClass1::getInstance(foo19) memory usage: 5224 called DerivedClass1::getInstance(foo19) memory usage: 5224 called DerivedClass1::getInstance(foo19) memory usage: 5224 called DerivedClass1::getInstance(foo19) memory usage: 5224 called DerivedClass1::getInstance(foo19) memory usage: 5224 called DerivedClass1::getInstance(foo19) memory usage: 5224 called DerivedClass1::getInstance(foo19) memory usage: 5224 called DerivedClass1::getInstance(foo19) memory usage: 5224 called DerivedClass1::getInstance(foo19) memory usage: 5224 called DerivedClass1::getInstance(foo19) memory usage: 5224 called DerivedClass1::getInstance(foo19) memory usage: 5224 called DerivedClass1::getInstance(foo19) memory usage: 5224 called DerivedClass1::getInstance(foo19) memory usage: 5224 called DerivedClass2::getInstance(foo1) memory usage: 5328 called DerivedClass2::getInstance(foo1) memory usage: 5328 called DerivedClass2::getInstance(foo1) memory usage: 5328 called DerivedClass2::getInstance(foo1) memory usage: 5328 called DerivedClass2::getInstance(foo1) memory usage: 5328 called DerivedClass2::getInstance(foo1) memory usage: 5328 called DerivedClass2::getInstance(foo1) memory usage: 5328 called DerivedClass2::getInstance(foo1) memory usage: 5328 called DerivedClass2::getInstance(foo1) memory usage: 5328 called DerivedClass2::getInstance(foo1) memory usage: 5328 called DerivedClass2::getInstance(foo1) memory usage: 5328 called DerivedClass2::getInstance(foo1) memory usage: 5328 called DerivedClass2::getInstance(foo1) memory usage: 5328 called DerivedClass2::getInstance(foo1) memory usage: 5328 called DerivedClass2::getInstance(foo1) memory usage: 5328 called DerivedClass2::getInstance(foo1) memory usage: 5328 called DerivedClass2::getInstance(foo1) memory usage: 5328 called DerivedClass2::getInstance(foo1) memory usage: 5328 called DerivedClass2::getInstance(foo1) memory usage: 5328 called DerivedClass2::getInstance(foo2) memory usage: 5432 called DerivedClass2::getInstance(foo2) memory usage: 5432 called DerivedClass2::getInstance(foo2) memory usage: 5432 called DerivedClass2::getInstance(foo2) memory usage: 5432 called DerivedClass2::getInstance(foo2) memory usage: 5432 called DerivedClass2::getInstance(foo2) memory usage: 5432 called DerivedClass2::getInstance(foo2) memory usage: 5432 called DerivedClass2::getInstance(foo2) memory usage: 5432 called DerivedClass2::getInstance(foo2) memory usage: 5432 called DerivedClass2::getInstance(foo2) memory usage: 5432 called DerivedClass2::getInstance(foo2) memory usage: 5432 called DerivedClass2::getInstance(foo2) memory usage: 5432 called DerivedClass2::getInstance(foo2) memory usage: 5432 called DerivedClass2::getInstance(foo2) memory usage: 5432 called DerivedClass2::getInstance(foo2) memory usage: 5432 called DerivedClass2::getInstance(foo2) memory usage: 5432 called DerivedClass2::getInstance(foo2) memory usage: 5432 called DerivedClass2::getInstance(foo2) memory usage: 5432 called DerivedClass2::getInstance(foo2) memory usage: 5432 called DerivedClass2::getInstance(foo3) memory usage: 5536 called DerivedClass2::getInstance(foo3) memory usage: 5536 called DerivedClass2::getInstance(foo3) memory usage: 5536 called DerivedClass2::getInstance(foo3) memory usage: 5536 called DerivedClass2::getInstance(foo3) memory usage: 5536 called DerivedClass2::getInstance(foo3) memory usage: 5536 called DerivedClass2::getInstance(foo3) memory usage: 5536 called DerivedClass2::getInstance(foo3) memory usage: 5536 called DerivedClass2::getInstance(foo3) memory usage: 5536 called DerivedClass2::getInstance(foo3) memory usage: 5536 called DerivedClass2::getInstance(foo3) memory usage: 5536 called DerivedClass2::getInstance(foo3) memory usage: 5536 called DerivedClass2::getInstance(foo3) memory usage: 5536 called DerivedClass2::getInstance(foo3) memory usage: 5536 called DerivedClass2::getInstance(foo3) memory usage: 5536 called DerivedClass2::getInstance(foo3) memory usage: 5536 called DerivedClass2::getInstance(foo3) memory usage: 5536 called DerivedClass2::getInstance(foo3) memory usage: 5536 called DerivedClass2::getInstance(foo3) memory usage: 5536 called DerivedClass2::getInstance(foo4) memory usage: 5640 called DerivedClass2::getInstance(foo4) memory usage: 5640 called DerivedClass2::getInstance(foo4) memory usage: 5640 called DerivedClass2::getInstance(foo4) memory usage: 5640 called DerivedClass2::getInstance(foo4) memory usage: 5640 called DerivedClass2::getInstance(foo4) memory usage: 5640 called DerivedClass2::getInstance(foo4) memory usage: 5640 called DerivedClass2::getInstance(foo4) memory usage: 5640 called DerivedClass2::getInstance(foo4) memory usage: 5640 called DerivedClass2::getInstance(foo4) memory usage: 5640 called DerivedClass2::getInstance(foo4) memory usage: 5640 called DerivedClass2::getInstance(foo4) memory usage: 5640 called DerivedClass2::getInstance(foo4) memory usage: 5640 called DerivedClass2::getInstance(foo4) memory usage: 5640 called DerivedClass2::getInstance(foo4) memory usage: 5640 called DerivedClass2::getInstance(foo4) memory usage: 5640 called DerivedClass2::getInstance(foo4) memory usage: 5640 called DerivedClass2::getInstance(foo4) memory usage: 5640 called DerivedClass2::getInstance(foo4) memory usage: 5640 called DerivedClass2::getInstance(foo5) memory usage: 5744 called DerivedClass2::getInstance(foo5) memory usage: 5744 called DerivedClass2::getInstance(foo5) memory usage: 5744 called DerivedClass2::getInstance(foo5) memory usage: 5744 called DerivedClass2::getInstance(foo5) memory usage: 5744 called DerivedClass2::getInstance(foo5) memory usage: 5744 called DerivedClass2::getInstance(foo5) memory usage: 5744 called DerivedClass2::getInstance(foo5) memory usage: 5744 called DerivedClass2::getInstance(foo5) memory usage: 5744 called DerivedClass2::getInstance(foo5) memory usage: 5744 called DerivedClass2::getInstance(foo5) memory usage: 5744 called DerivedClass2::getInstance(foo5) memory usage: 5744 called DerivedClass2::getInstance(foo5) memory usage: 5744 called DerivedClass2::getInstance(foo5) memory usage: 5744 called DerivedClass2::getInstance(foo5) memory usage: 5744 called DerivedClass2::getInstance(foo5) memory usage: 5744 called DerivedClass2::getInstance(foo5) memory usage: 5744 called DerivedClass2::getInstance(foo5) memory usage: 5744 called DerivedClass2::getInstance(foo5) memory usage: 5744 called DerivedClass2::getInstance(foo6) memory usage: 5848 called DerivedClass2::getInstance(foo6) memory usage: 5848 called DerivedClass2::getInstance(foo6) memory usage: 5848 called DerivedClass2::getInstance(foo6) memory usage: 5848 called DerivedClass2::getInstance(foo6) memory usage: 5848 called DerivedClass2::getInstance(foo6) memory usage: 5848 called DerivedClass2::getInstance(foo6) memory usage: 5848 called DerivedClass2::getInstance(foo6) memory usage: 5848 called DerivedClass2::getInstance(foo6) memory usage: 5848 called DerivedClass2::getInstance(foo6) memory usage: 5848 called DerivedClass2::getInstance(foo6) memory usage: 5848 called DerivedClass2::getInstance(foo6) memory usage: 5848 called DerivedClass2::getInstance(foo6) memory usage: 5848 called DerivedClass2::getInstance(foo6) memory usage: 5848 called DerivedClass2::getInstance(foo6) memory usage: 5848 called DerivedClass2::getInstance(foo6) memory usage: 5848 called DerivedClass2::getInstance(foo6) memory usage: 5848 called DerivedClass2::getInstance(foo6) memory usage: 5848 called DerivedClass2::getInstance(foo6) memory usage: 5848 called DerivedClass2::getInstance(foo7) memory usage: 5952 called DerivedClass2::getInstance(foo7) memory usage: 5952 called DerivedClass2::getInstance(foo7) memory usage: 5952 called DerivedClass2::getInstance(foo7) memory usage: 5952 called DerivedClass2::getInstance(foo7) memory usage: 5952 called DerivedClass2::getInstance(foo7) memory usage: 5952 called DerivedClass2::getInstance(foo7) memory usage: 5952 called DerivedClass2::getInstance(foo7) memory usage: 5952 called DerivedClass2::getInstance(foo7) memory usage: 5952 called DerivedClass2::getInstance(foo7) memory usage: 5952 called DerivedClass2::getInstance(foo7) memory usage: 5952 called DerivedClass2::getInstance(foo7) memory usage: 5952 called DerivedClass2::getInstance(foo7) memory usage: 5952 called DerivedClass2::getInstance(foo7) memory usage: 5952 called DerivedClass2::getInstance(foo7) memory usage: 5952 called DerivedClass2::getInstance(foo7) memory usage: 5952 called DerivedClass2::getInstance(foo7) memory usage: 5952 called DerivedClass2::getInstance(foo7) memory usage: 5952 called DerivedClass2::getInstance(foo7) memory usage: 5952 called DerivedClass2::getInstance(foo8) memory usage: 6056 called DerivedClass2::getInstance(foo8) memory usage: 6056 called DerivedClass2::getInstance(foo8) memory usage: 6056 called DerivedClass2::getInstance(foo8) memory usage: 6056 called DerivedClass2::getInstance(foo8) memory usage: 6056 called DerivedClass2::getInstance(foo8) memory usage: 6056 called DerivedClass2::getInstance(foo8) memory usage: 6056 called DerivedClass2::getInstance(foo8) memory usage: 6056 called DerivedClass2::getInstance(foo8) memory usage: 6056 called DerivedClass2::getInstance(foo8) memory usage: 6056 called DerivedClass2::getInstance(foo8) memory usage: 6056 called DerivedClass2::getInstance(foo8) memory usage: 6056 called DerivedClass2::getInstance(foo8) memory usage: 6056 called DerivedClass2::getInstance(foo8) memory usage: 6056 called DerivedClass2::getInstance(foo8) memory usage: 6056 called DerivedClass2::getInstance(foo8) memory usage: 6056 called DerivedClass2::getInstance(foo8) memory usage: 6056 called DerivedClass2::getInstance(foo8) memory usage: 6056 called DerivedClass2::getInstance(foo8) memory usage: 6056 called DerivedClass2::getInstance(foo9) memory usage: 6160 called DerivedClass2::getInstance(foo9) memory usage: 6160 called DerivedClass2::getInstance(foo9) memory usage: 6160 called DerivedClass2::getInstance(foo9) memory usage: 6160 called DerivedClass2::getInstance(foo9) memory usage: 6160 called DerivedClass2::getInstance(foo9) memory usage: 6160 called DerivedClass2::getInstance(foo9) memory usage: 6160 called DerivedClass2::getInstance(foo9) memory usage: 6160 called DerivedClass2::getInstance(foo9) memory usage: 6160 called DerivedClass2::getInstance(foo9) memory usage: 6160 called DerivedClass2::getInstance(foo9) memory usage: 6160 called DerivedClass2::getInstance(foo9) memory usage: 6160 called DerivedClass2::getInstance(foo9) memory usage: 6160 called DerivedClass2::getInstance(foo9) memory usage: 6160 called DerivedClass2::getInstance(foo9) memory usage: 6160 called DerivedClass2::getInstance(foo9) memory usage: 6160 called DerivedClass2::getInstance(foo9) memory usage: 6160 called DerivedClass2::getInstance(foo9) memory usage: 6160 called DerivedClass2::getInstance(foo9) memory usage: 6160 called DerivedClass2::getInstance(foo10) memory usage: 6264 called DerivedClass2::getInstance(foo10) memory usage: 6264 called DerivedClass2::getInstance(foo10) memory usage: 6264 called DerivedClass2::getInstance(foo10) memory usage: 6264 called DerivedClass2::getInstance(foo10) memory usage: 6264 called DerivedClass2::getInstance(foo10) memory usage: 6264 called DerivedClass2::getInstance(foo10) memory usage: 6264 called DerivedClass2::getInstance(foo10) memory usage: 6264 called DerivedClass2::getInstance(foo10) memory usage: 6264 called DerivedClass2::getInstance(foo10) memory usage: 6264 called DerivedClass2::getInstance(foo10) memory usage: 6264 called DerivedClass2::getInstance(foo10) memory usage: 6264 called DerivedClass2::getInstance(foo10) memory usage: 6264 called DerivedClass2::getInstance(foo10) memory usage: 6264 called DerivedClass2::getInstance(foo10) memory usage: 6264 called DerivedClass2::getInstance(foo10) memory usage: 6264 called DerivedClass2::getInstance(foo10) memory usage: 6264 called DerivedClass2::getInstance(foo10) memory usage: 6264 called DerivedClass2::getInstance(foo10) memory usage: 6264 called DerivedClass2::getInstance(foo11) memory usage:
Process exited with code 137.