Compares the efficiency of array_map and a foreach using PHP