Benchmark array versus object This benchmark tests the next functionalities: Create a variable. Then, it reads a simple value And it adds to the list (the list is created every round) And it is an example of the variables used $array_numeric=[$hello,$second,$third]; $array_not_numeric=['hello'=>$hello,'second'=>$second,'third'=>$third]; $object_constructor=DummyClass('world',0,20.3); $object_no_constructor=new DummyClass2();
$object_no_constructor->hello='world';
$object_no_constructor->second=0;
$object_no_constructor->third=20.3;