The code shown in Listing 3–7 is a simple for loop that will loop through the array,
$items, and calculate a numerical value ten times. To identify where we can optimize,
and in this case make fewer function calls, you need to analyze what the code is doing
step-by-step.