Test: many classes vs. associative arrays
Does it make any difference when you have multiple classes being instantiated vs. multiple arrays? Note that both are wrapped in an eval to make it fair (another option would be to pre-create all of the classes, but this is more illustrative.)
Run Again Test MenuResult
Unfortunately, no history for this test is available.
Code
The first test, "classes", was:
$name = 'TestClass' . $GLOBALS['i']++; eval(' class ' . $name . ' { var $x, $y, $z; } $data = new ' . $name . '(); $data->x = \'test\'; $data->y = 1; $data->z = 5.5;');
The second test, "arrays", was:
$name = 'TestArray' . $GLOBALS['i']++; eval(' $' . $name . ' = array( \'x\' => null, \'y\' => null, \'z\' => null, ); $' . $name . '[\'x\'] = \'test\'; $' . $name . '[\'y\'] = 1; $' . $name . '[\'z\'] = 5.5;');