private function evalString($str)
    {
        $a = false;

        if (class_exists('ParseError')) {
            try {
                $a = eval("return $str;");
            } catch (ParseError $e) {
            }
        } else {
            $a = @eval("return $str;");
        }

        return $a;
    }
private function evalString($str)
    {
        $a = false;

        if (class_exists('ParseError')) {
            try {
                $a = eval("return $str;");
            } catch (ParseError $e) {
            }
        } else {
            $a = @eval("return $str;");
        }

        return $a;
    }
private function evalString ( $ str ) { $ a = false ; if ( class_exists ( 'ParseError' ) ) { try { $ a = eval ( "return $str;" ) ; } catch ( ParseError $ e ) { } } else { $ a = @ eval ( "return $str;" ) ; } return $ a ; }
Eval a PHP string and catch PHP Parse Error syntax

@param $str

@return bool|mixed
Eval a PHP string and catch PHP Parse Error syntax