ParseError thrown

syntax error, unexpected 'var' (T_VAR), expecting end of file