turned off html5 errors but code is super slow

why is php so stupid?