dataset = $generator->generate(self::DATASET_SIZE) ->apply(new LambdaFunction(function (&$sample) { $sample[1] = strval($sample[1]); $sample[3] = strval($sample[3]); })); $this->transformer = new NumericStringConverter(); } /** * @Subject * @Iterations(5) * @OutputTimeUnit("milliseconds", precision=3) */ public function apply() : void { $this->dataset->apply($this->transformer); } }