Put sugar and milk in pan and bring to a boil. Boil two and a half minutes. Remove from heat and add peanut butter and vanilla. Stir just until mixed well. Pour into greased pan. Cool and cut.