ParseError thrown

syntax error, unexpected 'for' (T_FOR)